File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / axTLS / www / lua / env.lua
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Fri Sep 28 11:55:55 2012 UTC (12 years, 6 months ago) by misho
Branches: v1_4_8, MAIN
CVS tags: datecs, HEAD
axTLS

    1: -- This file should be executed before any script in this directory
    2: -- according to the configuration (cgilua/conf.lua).
    3: 
    4: pcall (cgilua.enablesession)
    5: 
    6: local put, mkurlpath = cgilua.put, cgilua.mkurlpath
    7: 
    8: cgilua.addclosefunction (function ()
    9: 	put [[
   10: <p>
   11: <small>
   12: <a href="test_main.html">Main</a>]]
   13: 	for _, test in {
   14: 			{ "Get", "test_main.lua", {ab = "cd", ef = "gh"} },
   15: 			{ "Cookies", "test_cookies.lua", },
   16: 			{ "FileSystem", "test_fs.lua", },
   17: 			{ "Libraries", "test_lib.lua", },
   18: 			{ "Session", "test_session.lua", },
   19: 			{ "Variables", "test_variables.lp", },
   20: 		} do
   21: 		put (string.format (' &middot; <a href="%s">%s</a>',
   22: 			mkurlpath (test[2], test[3]), test[1]))
   23: 	end
   24: 	put [[
   25: </small>]]
   26: end)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>