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
366 B

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