Page History
...
The autoescape tag can be used to temporarily disable/re-enable the autoescaper as well as change the escaping strategy for a portion of the template.
Example |
|
Anchor | ||||
---|---|---|---|---|
|
A section that can be overridden by a child template.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
...
The filter tag allows you to apply a filter to a large chunk of template.
Template |
|
Template 2 |
{% filter ${filter1} |
| ${filter2} %} ${content} {% endfilter %} |
Anchor | ||||
---|---|---|---|---|
|
The for tag is used to iterate through a collection or map.
Template |
{% for ${i} in ${collection} %} ${content} {% endfor %} |
Anchor | ||||
---|---|---|---|---|
|
The for tag is used to iterate through a collection or map with a convenient way to check for emptiness.
Template |
{% for ${i} in ${collection} %} ${content} {% else %} ${content} {% endfor %} |
Anchor | ||||
---|---|---|---|---|
|
The if tag allows you to designate a chunk of content as conditional depending on the result of an expression.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The if tag allows you to designate a chunk of content as conditional depending on the result of an expression.
Template |
{% if ${condition} %} ${content} {% else %} ${content} {% endif %} |
Anchor | ||||
---|---|---|---|---|
|
The if tag allows you to designate a chunk of content as conditional depending on the result of an expression.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The import tag allows you to use macros defined in another template.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The include tag allows you to insert the rendered output of another template directly into the current template. The included template will have access to the same variables that the current template does.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The include tag allows you to insert the rendered output of another template directly into the current template. The included template will have access to the same variables that the current template does with additional variables.
Template |
{% include "${templateName}" with { ${mapOfVariables} } %} |
Anchor | ||||
---|---|---|---|---|
|
The macro tag allows you to create a chunk of reusable and dynamic content. The macro can be called multiple times in the current template or even from another template with the help of the import tag.
Example |
|
Anchor | ||||
---|---|---|---|---|
|
The parallel tag allows you to designate a chunk of content to be rendered using a new thread.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
The set tag allows you to define a variable in the current context, whether it currently exists or not.
Will initialize the variable or override the current value in the variable.
Template |
|
Anchor | ||||
---|---|---|---|---|
|
...