mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +00:00
updated doc
git-svn-id: http://svn.twig-project.org/trunk@175 93ef8e89-cb99-4229-a87c-7fa0fa45744b
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user