Ranting Foreach
{% for key, value in array %}
{{ key }}: {{ value }}
{% endfor %}
Gleaming Gannet
{% for key, value in array %}
{{ key }}: {{ value }}
{% endfor %}
{% for user in users %}
<li>{{ user.username|e }}</li>
{% endfor %}
<ul>
{% for key, user in users %}
<li>{{ key }}: {{ user.username|e }}</li>
{% endfor %}
</ul>
{% for user in users %}
{{ loop.index }} - {{ user.username }}
{% endfor %}
<h1>Members</h1>
<ul>
{% for key, user in users %}
<li>{{ key }}: {{ user.username|e }}</li>
{% endfor %}
</ul>
<h1>Members</h1>
<ul>
{% for key in users|keys %}
<li>{{ key }}</li>
{% endfor %}
</ul>