TemplateParser » History » Version 1
Version 1/56
-
Next » -
Current version
Elmer de Looff, 2012-02-09 15:27
TemplateParser¶
The µWeb TemplateParser is a in-house developed templating engine that provides tag replacement, tag-functions and template control functions. This document will describe the following:- The #Template class, used to parse the templating language
- The #Parser clas, which provides template loading and caching
- Using TemplateParser inside a µWeb PageMaker
- A detailed explanation of the templating language, constructs and behaviors
First though, to help with understanding the TemplateParser, a minimal size template document:
Hello [title] [name]
The above document contains two simple template tags. These tags are delimited by square brackets, and they will be replaced by the named argument provided during parsing. If this name is not present, then the literal presentation of the tag will remain in the output.