I want to make a counter this simple code not working...
{% set count = 1 %}
{% for i in [1,2,3,4,5] %}
{% set count = count + 1 %}
{% endfor %}
<h2>found {{count}}<h2>
the result is 1 i see you can use this How to increment a variable on a for loop in jinja template? but this is not work for me
tag should be inside the for loop.
– amanb Dec 27 '18 at 20:23