<% local viewtable, viewlibrary, pageinfo, session = ... html=require("html") %> Status: 200 OK Content-Type: text/html <% if (session.id) then io.write( html.cookie.set("sessionid", session.id) ) else io.write (html.cookie.unset("sessionid")) end %> <% local hostname = "" if viewlibrary and viewlibrary.dispatch_component then local result = viewlibrary.dispatch_component("alpine-baselayout/hostname/read", nil, true) if result and result.value then hostname = result.value end end %> <%= html.html_escape(hostname .. " - " .. pageinfo.controller .. "->" .. pageinfo.action) %> <% local func = haserl.loadfile(pageinfo.viewfile) %> <% func (viewtable, viewlibrary, pageinfo, session) %>