1 LuCI has a simple regex based template processor which parses HTML-files to Lua functions and allows to store precompiled template files.
2 The simplest form of a template is just an ordinary HTML-file. It will be printed out to the user as is.
4 In LuCI every template is an object with an own scope. It can therefore be instanciated and each instance can has a different scope. As every template processor. LuCI supports several special markups. Those are enclosed in *<% %>-Tags*.
6 By adding a *-_' right after the opening '''<%''' every whitespace before the markup will be stripped. Adding a '''-''' right before the closing '_%>* will equivalently strip every whitespace behind the markup.
11 # Builtin functions and markups
19 ## Writing variables and function values
30 ## Including templates
33 <% include (templatename) %>
45 <%= translate("Text to translate") %>
51 <%:Text to translate%>
63 ||REQUEST_URI||The current URL (without server part)||
64 ||controller||Path to the Luci main dispatcher||
65 ||resource||Path to the resource directory||
66 ||media||Path to the active theme directory||