Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.
Lukas Jans edited this page Feb 21, 2019 · 1 revision

Tags are used to define a structure in your template without real data.

They consist of:

  • The opening delimiter, by default {{
  • An optional character defining the type of the tag
  • The name of the tag, only letters allowed
  • The closing delimiter, by default }}

There are five types of tags:

Type Description Example
none Placeholder {{test}}
! Comment {{!test}}
# Opens a regular section {{#test}}
^ Opens an inverted section {{^test}}
/ Closes a section {{/test}}

The name can be freely choosen and is used to assign data to the tag. Mostly this is done by passing a data object to the renderer that has a property with the same name as the tag. This property is then called the tags context.

Clone this wiki locally