summaryrefslogtreecommitdiffhomepage
path: root/documentation
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-06-16 10:21:47 +0200
committerJo-Philipp Wich <jow@openwrt.org>2015-06-16 10:21:47 +0200
commite8029d6398eccf1246885e6d42817d57fcc0ed9f (patch)
tree53b765314184121d6e3b3eace3cd8f5fd2391d19 /documentation
parentdde25048b9c7e14ab0d4df8a5d18650ec7508d65 (diff)
Fix markup in Template reference
Diffstat (limited to 'documentation')
-rw-r--r--documentation/Templates.md17
1 files changed, 8 insertions, 9 deletions
diff --git a/documentation/Templates.md b/documentation/Templates.md
index 6affd7fcf..dc42c28ab 100644
--- a/documentation/Templates.md
+++ b/documentation/Templates.md
@@ -1,11 +1,9 @@
LuCI has a simple regex based template processor which parses HTML-files to Lua functions and allows to store precompiled template files.
The simplest form of a template is just an ordinary HTML-file. It will be printed out to the user as is.
-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*.
+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.
-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.
-
-<<BR>>
+By adding `-` (dash) 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.
# Builtin functions and markups
@@ -59,8 +57,9 @@ By adding a *-_' right after the opening '''<%''' every whitespace before the ma
# 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||
+| 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|