How the example works:

If you pass a multi-dimensional variable to a template that has one child element, patTemplate will automatically start repeating this template and add the values to its child on each interation.

If a template has more than one child, you may use the child attribute of the tmpl tag to define to which template should be repeated.

To replace <, > and other HTML special chars, a modifier is applied to the variable.