X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=documentation%2FTemplates.md;h=adf019c01a792c1a7ac099086ef22ad13453416a;hb=refs%2Fpull%2F3229%2Fhead;hp=dc42c28ab76daeb06787071b71f9a76bb77120c1;hpb=1cb3adb619bdd876867f4c4da615ea850464e711;p=oweals%2Fluci.git diff --git a/documentation/Templates.md b/documentation/Templates.md index dc42c28ab..adf019c01 100644 --- a/documentation/Templates.md +++ b/documentation/Templates.md @@ -1,7 +1,7 @@ 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 instantiated and each instance can has a different scope. As every template processor. LuCI supports several special markups. Those are enclosed in `<% %>`-Tags. 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.