--------------------------------------------------------------------- -- Main Lua script. -- This script should be run by the executable. -- $Id: t_cgi.lua,v 1.6 2006/08/10 19:27:36 mascarenhas Exp $ --------------------------------------------------------------------- -- Kepler bootstrap local bootstrap, err = loadfile(os.getenv("KEPLER_INIT") or [[KEPLER_INIT]]) if bootstrap then bootstrap() else io.stderr:write(tostring(err)) return nil end local info = require"sapi.cgi.info" local req = require"sapi.cgi.request" local res = require"sapi.cgi.response" SAPI = { Info = info.open (), Request = req.open (), Response = res.open (), } require"cgilua" return cgilua.main()