I found the working example:
{% set k = 10 %}
{% for i in range(1, k) %}
{{ i }}
{% endfor %}
Source: http://twig.sensiolabs.org/doc/templates.html (not very intuitive to find indeed).
I found the working example:
{% set k = 10 %}
{% for i in range(1, k) %}
{{ i }}
{% endfor %}
Source: http://twig.sensiolabs.org/doc/templates.html (not very intuitive to find indeed).