diff options
Diffstat (limited to 'template-html.lsp')
-rw-r--r-- | template-html.lsp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/template-html.lsp b/template-html.lsp index c3f9e27..79686bb 100644 --- a/template-html.lsp +++ b/template-html.lsp @@ -1,11 +1,11 @@ -<% local viewtable, viewlibrary, pageinfo, session = ... +<% local viewtable, viewlibrary, pageinfo, session = ... html=require("acf.html") posix = require("posix") %> Status: 200 OK Content-Type: text/html -<% if (session.id) then - io.write( html.cookie.set("sessionid", session.id) ) +<% if (session.id) then + io.write( html.cookie.set("sessionid", session.id) ) else io.write (html.cookie.unset("sessionid")) end @@ -107,13 +107,13 @@ end </div><!-- page --> -<% +<% if pageinfo.viewfile then fs=require("acf.fs") local sf = posix.dirname(pageinfo.viewfile) .. '/' .. pageinfo.controller .. '-' .. pageinfo.action ..'-popups-html.lsp' if fs.is_file(sf) then %><!-- multipage --> -<% +<% local func = haserl.loadfile(sf) func (viewtable, viewlibrary, pageinfo, session) %><!-- /multipage --> |