diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-08-10 16:18:09 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-08-10 16:18:09 +0000 |
commit | b506923bb7f4d99d9da33515f83a3a07e6ba4130 (patch) | |
tree | 186450fb92a0796e6dbb8486639ab455f9299680 /template-html.lsp | |
parent | 4cd53810dd3d701470f8f2409ad887ce29adcdb3 (diff) | |
download | acf-skins-jqmobile-master.tar.bz2 acf-skins-jqmobile-master.tar.xz |
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 --> |