updated doc

git-svn-id: http://svn.twig-project.org/trunk@175 93ef8e89-cb99-4229-a87c-7fa0fa45744b
This commit is contained in:
fabien
2009-12-13 15:25:48 +00:00
parent 2b30f94f4f
commit 67f4144906
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -902,10 +902,10 @@ The `in` operator is a syntactic sugar for the `in` filter:
### `range` (new in Twig 0.9.5)
Returns a list containing a sequence of numbers. The filtered value represents
the low value and the filter takes two arguments: the first one is mandatory
are represents the high value, and the second one is optional and represents
the step (which defaults to `1`).
Returns a list containing a sequence of numbers. The left side of the filter
represents the low value. The first argument of the filter is mandatory and
represents the high value. The second argument is optional and represents the
step (which defaults to `1`).
If you do need to iterate over a sequence of numbers:
+1 -1
View File
@@ -64,7 +64,7 @@ Defining new Filters
--------------------
The most common element you will want to add to Twig is filters. A filter is
just a regular PHP callable that takes the left side of the filter as first
just a regular PHP function that takes the left side of the filter as first
argument and the arguments passed to the filter as extra arguments.
Let's create a filter, named `rot13`, which returns the