Answers for "jinja for loop"

0

jinja for loop

<!-- Create an unordered list from the navigation iterable -->
<ul id="navigation">
    {% for item in navigation %}
        <li><a href="{{ item.href }}">{{ item.caption }}</a></li>
    {% endfor %}
</ul>
Posted by: Guest on August-06-2021
0

jinja loop

Copy to clipboard{% set Count = 0 %}
{% for state in states.device_tracker %}
    {% if loop.first %}
        {% set Count = loop.length %}
    {% endif %}
{% endfor %}
{{ Count }}
Posted by: Guest on August-15-2021

Browse Popular Code Answers by Language