-
- You can loop over a list in reverse by using
- ``{% for obj in list reversed %}``.
-
- You can also unpack multiple values from a two-dimensional array::
-
- {% for key,value in dict.items %}
- {{ key }}: {{ value }}
- {% endfor %}
-
- The ``for`` tag can take an optional ``{% empty %}`` clause that will
- be displayed if the given array is empty or could not be found::
-
-

- {% for athlete in athlete_list %}
-

{{ athlete.name }}

- {% empty %}
-

Sorry, no athletes in this list.

- {% endfor %}
-

-
- The above is equivalent to -- but shorter, cleaner, and possibly faster
- than -- the following::
-
-

+
+ You can loop over a list in reverse by using
+ ``{% for obj in list reversed %}``.
+
+ You can also unpack multiple values from a two-dimensional array::
+
+ {% for key,value in dict.items %}
+ {{ key }}: {{ value }}
+ {% endfor %}
+
+ The ``for`` tag can take an optional ``{% empty %}`` clause that will
+ be displayed if the given array is empty or could not be found::
+
+

+ {% for athlete in athlete_list %}
+

{{ athlete.name }}

+ {% empty %}
+

Sorry, no athletes in this list.

+ {% endfor %}
+

+
+ The above is equivalent to -- but shorter, cleaner, and possibly faster
+ than -- the following::
+
+