Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The extends tag is used to declare a parent template. It should be the very first tag used in a child template and a child template can only extend up to one parent template.

Template

{% extends "${templateName}" %}

Anchor
_filter
_filter
filter

...

The list with add tag is used to append a value to a list.

Example

{% set alphabet = ["a", "b", "c"] %}
{{ alphabet }}{% br %}
{% list alphabet add "d" -%}
{{ alphabet }}

Outputs

[a, b, c]
[a, b, c, d]

Anchor
_list_adds
_list_adds
list adds

The list with add tag is used to append one or more values to a list.

Example

{% set alphabet = ["a", "b", "c"] %}
{{ alphabet }}{% br %}
{% list alphabet add "d", "e", "f" -%}
{{ alphabet }}

Outputs

[a, b, c]
[a, b, c, d, e, f]

Anchor
_list_remove
_list_remove
list remove

The list with remove tag is used to remove a value from a list.

Example

{% set alphabet = ["a", "b", "c", "d", "e", "f"] %}{{ alphabet }}{% br %}{% list alphabet remove "d", "e", "f" -%}
{{ alphabet }}

Outputs

[a, b, c, d, e, f]
[a, b, c]

Anchor
_list_removes
_list_removes
list removes

The list with remove tag is used to remove one or more values from a list.

Example

{% set alphabet = ["a", "b", "c", "d", "e", "f"] %}
{{ alphabet }}{% br %}
{% list alphabet remove "d", "e", "f" -%}
{{ alphabet }}

Outputs

[a, b, c, d, e, f]
[a, b, c]

Anchor
_map_put
_map_put
map put

...

The placebottom tag allows defining a block in the template that will be placed at the end of the output. The priority argument defines the order of multiple place bottom blocks.

Template

{% placebottom ${priority} %}
${content}
{% endplacebottom %}

Anchor
_get
_get
get

The get tag defines a variable as a subset of a collection based on the given condition.

Example

{% get evenNums from range(1,10) as num where num is even %}
{{ evenNums }}

Output

[2, 4, 6, 8, 10]