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