1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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)