Answers for "if end if twig"

PHP
0

twig if

{% if users %}
    <ul>
        {% for user in users %}
            <li>{{ user.username|e }}</li>
        {% endfor %}
    </ul>
{% endif %}
Posted by: Guest on May-19-2020

Browse Popular Code Answers by Language