问题
I want to make a for-loop that goes from 0 to 10 in Jinja.
How do I do it?
All I know to do is the advanced for, but this does not help me now.
回答1:
do something like this...
{% for i in range(11) %}
{{ i }}
{% endfor %}
Edited the endfor.
Hope this helps!
来源:https://stackoverflow.com/questions/29706099/how-to-make-a-for-loop-in-jinja