Project

General

Profile

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:

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.

Template class

Parser class

Using TemplateParser inside µWeb

Templating language syntax