From e4b39f4255aff6f974eb1a1e4e78fe01587814aa Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 28 Jul 2008 06:48:16 +0000 Subject: use <% %> instead of git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed --- app/template-html.lsp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'app/template-html.lsp') diff --git a/app/template-html.lsp b/app/template-html.lsp index eb9288e..4cd4f4d 100644 --- a/app/template-html.lsp +++ b/app/template-html.lsp @@ -1,19 +1,19 @@ - +<% local viewtable, viewlibrary, pageinfo, session = ... + html=require("html") %> Status: 200 OK Content-Type: text/html - +%> - -<?= hostname .. " - " .. pageinfo.controller .. "->" .. pageinfo.action ?> - -"> +%> +<%= hostname .. " - " .. pageinfo.controller .. "->" .. pageinfo.action %> + +"> @@ -39,18 +39,18 @@ end

- Log out as '" .. session.userinfo.userid .. "'\n", ctlr .. "logout" ) ) else io.write ( string.format("\t\t\t\t\t\tLog in\n", ctlr .. "logon" ) ) - end ?> + end %> | home | about @@ -67,7 +67,7 @@ end

[Main menu]

- ") @@ -86,7 +86,7 @@ end io.write ( "\t\t\t\t\t" ) end io.write ( "\n\t\t\t\t\n\t\t\t\n") - ?> + %>
@@ -96,7 +96,7 @@ end
-

:

+

<%= pageinfo.controller %> : <%= pageinfo.action %>

[ welcome ] > [ login ] > [ bgp ] > [ firewall ] > [ content filter ] > [ interfaces ]

@@ -111,8 +111,8 @@ end
    - - + <% for x,tab in pairs(tabs or {}) do if tab.action == pageinfo.action then class="class='selected'" else @@ -121,7 +121,7 @@ end io.write (string.format('
  • %s
  • \n', class,class,tab.action,tab.name )) end - ?> + %>
@@ -132,8 +132,8 @@ end
- - + <% local func = haserl.loadfile(pageinfo.viewfile) %> + <% func (viewtable, viewlibrary, pageinfo, session) %>
@@ -144,7 +144,7 @@ end -- cgit v1.2.3