mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-21 15:48:42 +00:00
tweaked docs
This commit is contained in:
+3
-7
@@ -545,14 +545,10 @@ The ``..`` operator can take any expression at both sides:
|
|||||||
* {{ letter }}
|
* {{ letter }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
If you need a step different from 1, you can use the ``range`` function
|
.. tip:
|
||||||
instead:
|
|
||||||
|
|
||||||
.. code-block:: jinja
|
If you need a step different from 1, you can use the ``range`` function
|
||||||
|
instead.
|
||||||
{% for i in range(0, 10, 2) %}
|
|
||||||
* {{ i }}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
Inside of a ``for`` loop block you can access some special variables:
|
Inside of a ``for`` loop block you can access some special variables:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user