stencet  v0.1.16
Build C++ web server modules that allow easy routing and deployment.
For

This filter is used to loop over a list. Its syntax is:

{% for ${val} in ${loop} %}
...
{% endfor %}

where val must be a single valid variable name, and loop can be any expression.

Optionally, you can have an empty body definition too:

{% for ${val} in ${loop} %}
...
{% empty %}
...
{% endfor %}

Where items in the second body are only displayed if nothing is in the looped list.