Including Lua code
Markup:
<% code %>
Writing variables and function values
Syntax:
<% write (value) %>
Short-Markup:
<%=value%>
Including templates
Syntax:
<% include (templatename) %>
Short-Markup:
<%+templatename%>
Translating
Syntax:
<% translate (translation_key, default_translation) %>
Short-Markup:
<%:translation_key default_translation%>
Commenting
Markup:
<%# comment %>
Builtin constants
Name
Value
REQUEST_URI
The current URL (without server part)
controller
Path to the Luci main dispatcher
resource
Path to the resource directory
media
Path to the active theme directory