twig loop category code example Example: twig loop {% for user in users %} {{ loop.index }} - {{ user.username }} {% endfor %}