projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
071210f
)
tweaked docs
author
Fabien Potencier
<fabien.potencier@gmail.com>
Wed, 18 May 2011 06:14:47 +0000 (08:14 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Wed, 18 May 2011 06:14:47 +0000 (08:14 +0200)
doc/templates.rst
patch
|
blob
|
history
diff --git
a/doc/templates.rst
b/doc/templates.rst
index
fe26b53
..
3f1ac94
100644
(file)
--- a/
doc/templates.rst
+++ b/
doc/templates.rst
@@
-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: