Rework LuCI build system
[project/luci.git] / libs / luci-lib-nixio / axTLS / www / lua / env.lua
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)