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.
In-line conditional statements Jinja in-line conditionals are started with a curly brace and a % symbol, like {% if condition %} and closed with {% endif %} . You can optionally include both {% elif %} and {% else %} tags.
Yes, you can do this.
You can create a loop like this:
{% for i in range(11) %} {{ i }} {% endfor %}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With