added another example for the range filter

git-svn-id: http://svn.twig-project.org/trunk@172 93ef8e89-cb99-4229-a87c-7fa0fa45744b
This commit is contained in:
fabien
2009-12-13 14:46:07 +00:00
parent 87ba224cd4
commit 237c3ff89e
@@ -406,6 +406,13 @@ filter:
The above snippet of code would print all numbers from 0 to 9 (the high value
is never part of the generated array).
It can be also useful with letters:
[twig]
{% for letter in 'a'|range('z') %}
* {{ letter }}
{% endfor %}
Inside of a `for` loop block you can access some special variables:
| Variable | Description