| code | description |
|---|---|
<%_ term %> |
translate with i18n |
<%: term %> |
translate with i18n and escape XML |
<%+ path/to/template %> |
include template from view dir (/usr/lib/lua/luci/view) |
<%= expression %> |
print expression |
<%# comment %> |
comment |
<%- |
remove whitespaces on the left |
-%> |
remove whitespaces on the right |
Example:
<title>
<%-= "Hello World" -%>
</title>Result:
<title>Hello World</title><%+ path/to/template %> will be expanded to include("path/to/template") with include is provided at runtime by the dispatcher.