Skip to content
View SHML-Lang's full-sized avatar
Block or Report

Block or report SHML-Lang

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
SHML-Lang/README.md


ShellScript Hypertext Markup Language

Generates dynamic HTML content via ShellScript.



INSTALL

Requirements: Web Server (Apache2 | Nginx) and FCGI Wrap

LINUX (Debian)

FCGI Wrap

debian@debian:~$ su

root@debian:~# apt install fcgiwrap

Apache2 Modules

debian@debian:~$ su -

root@debian:~# a2enmod proxy_fcgi

root@debian:~# /etc/init.d/apache2 restart


SHML

root@debian:~# sh install.sh

  • Your shell functions must be declared or included in the file: /usr/share/shml/library.sh

  • Place the index.shml file in the public directory of the web server.


index.shml

<!DOCTYPE html>
<html>
<head>
<title>SHML <% version() %></title>
</head>
<body>
<!--

Block comment...

-->
<h1>It worked! <% print("Welcome!") %></h1>
<!-- Inline comment -->
<hr>
<h2><% hello_world() %></h2>
<h3><% date(%Y-%m-%d) %></h3>
</body>
</html>

Result:


<!DOCTYPE html>
<html>
<head>
<title>SHML 1.0.0</title>
</head>
<body>
<h1>It worked! Welcome!</h1>
<hr>
<h2>Hello World!</h2>
<h3>2022-10-20</h3>
</body>
</html>

Popular repositories

  1. SHML-Lang SHML-Lang Public

    Generates dynamic HTML content via ShellScript.

    Shell 1