TemplateParser » History » Version 3
« Previous -
Version 3/56
(diff) -
Next » -
Current version
Elmer de Looff, 2012-02-09 15:38
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 class, which provides template loading and caching
- Using TemplateParser inside a µWeb PageMaker
- A detailed explanation of the templating language syntax, 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.