Answers for "twig for key"

0

twig for loop key

{% for key, user in users %}
	<li>{{ key }}: {{ user.username|e }}</li>
{% endfor %}
Posted by: Guest on July-09-2020
0

twig for key value

{% for user in users %}
    * {{ user.name }}
{% else %}
    No users have been found.
{% endfor %}
Posted by: Guest on October-12-2021

Browse Popular Code Answers by Language