You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
374 B

#!/usr/bin/env lua
local fcgi = require"fcgi"
local app_yqtemplate = require"yqtemplate"
while fcgi.accept() do
app = fcgi.getenv("DOCUMENT_URI"):sub(6)
if app = "yqtemplate" then
app_yqtemplate(fcgi)
else
fcgi.print"Content-Type: text/plain; charset=utf-8\r\n\r\n"
fcgi.print("Unknown CGI application: `" .. app .. "'\n")
end
end