range in jinja2 inside a for loop

后端 未结 2 979
渐次进展
渐次进展 2021-02-03 18:14

I have a nested list. I need to iterate through a list and keep it in for loop as shown below.

{% for alpha in list %}
    
2条回答
  •  日久生厌
    2021-02-03 18:47

    It's just like Python:

    {% for n in range(n) %}
        {% for line in check[n][2:] %}
            

    {{ beta[0][0] }}

    {% endfor %} {% endfor %}

提交回复
热议问题