tweaked docs

This commit is contained in:
Fabien Potencier
2011-05-18 08:14:47 +02:00
parent 071210f97d
commit 7bf7f54e82
+3 -7
View File
@@ -545,14 +545,10 @@ The ``..`` operator can take any expression at both sides:
* {{ letter }}
{% endfor %}
If you need a step different from 1, you can use the ``range`` function
instead:
.. tip:
.. code-block:: jinja
{% for i in range(0, 10, 2) %}
* {{ i }}
{% endfor %}
If you need a step different from 1, you can use the ``range`` function
instead.
Inside of a ``for`` loop block you can access some special variables: