diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-08-01 01:25:42 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-08-01 01:25:42 -0500 |
| commit | 69c416c85bf92fca4b59aa78888a8aefbd0e0640 (patch) | |
| tree | a6122738014d565e7dac6d7c75ec7f0971d0a014 /test.lua | |
init
Diffstat (limited to 'test.lua')
| -rwxr-xr-x | test.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test.lua b/test.lua new file mode 100755 index 0000000..7fdbaf9 --- /dev/null +++ b/test.lua @@ -0,0 +1,17 @@ +#!/usr/bin/env luajit + +local ssg = require("www/cgi-bin/cgi") +local str="" +ssg.newline=true + +ssg.render(m("html", + m("head", + m("title","ssg test") + ).. + m("body", + m("h1","Hello from Lua CGI").. + m("p", "ssg test").. + m("p",_VERSION) + ) +), +{["Content-Type"]="text/html"},200) |
