aboutsummaryrefslogtreecommitdiff
path: root/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test.lua')
-rwxr-xr-xtest.lua17
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)