Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
@SHML-Lang
SHML-Lang
Follow
View SHML-Lang's full-sized avatar

SHML SHML-Lang

Programming Language

    Block or report SHML-Lang

    Block user

    Prevent this user from interacting with your repositories and sending you notifications. Learn more aboutblocking 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 aboutreporting 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 repositoriesLoading

    1. SHML-LangSHML-LangPublic

      Generates dynamic HTML content via ShellScript.

      Shell 1


    [8]ページ先頭

    ©2009-2025 Movatter.jp