Lines Matching refs:in
4 Loop over each item in a sequence. For example, to display a list of users
5 provided in a variable called ``users``:
11 {% for user in users %}
26 {% for i in 0..10 %}
36 {% for letter in 'a'..'z' %}
44 {% for letter in 'a'|upper..'z'|upper %}
67 ``loop.length`` The number of items in the sequence
73 {% for user in users %}
85 The ``if`` modifier support has been added in Twig 1.2.
90 Unlike in PHP, it's not possible to ``break`` or ``continue`` in a loop. You
97 {% for user in users if user.active %}
103 counting the users not iterated over. Keep in mind that properties like
123 {% for user in users %}
140 {% for key in users|keys %}
154 {% for key, user in users %}
169 {% for user in users|slice(0, 10) %}