Update MANUAL.txt for doctemplates changes.
This commit is contained in:
parent
06124fb863
commit
0d4813d7ba
1 changed files with 8 additions and 4 deletions
12
MANUAL.txt
12
MANUAL.txt
|
@ -1892,10 +1892,9 @@ with a short line length.$~$
|
|||
|
||||
### Filters
|
||||
|
||||
A filter transforms the value of a variable. Filters are
|
||||
specified using a slash (`/`) between the variable name and
|
||||
the filter name. They may go anywhere a variable can go.
|
||||
Example:
|
||||
A filter transforms the value of a variable or partial. Filters are
|
||||
specified using a slash (`/`) between the variable name (or partial)
|
||||
and the filter name. Example:
|
||||
|
||||
```
|
||||
$for(name)$
|
||||
|
@ -1905,6 +1904,8 @@ $endfor$
|
|||
$for(metadata/pairs)$
|
||||
- $it.key$: $it.value$
|
||||
$endfor$
|
||||
|
||||
$employee:name()/uppercase$
|
||||
```
|
||||
|
||||
Filters may be chained:
|
||||
|
@ -1945,6 +1946,9 @@ Currently the following filters are predefined:
|
|||
- `reverse`: Reverses a textual value or array,
|
||||
and has no effect on other values.
|
||||
|
||||
- `chomp`: Removes trailing newlines (and breakable space)
|
||||
from a textual value, and has no effect on other values.
|
||||
|
||||
- `alpha`: Converts a textual value that can be
|
||||
read as an integer into a lowercase alphabetic
|
||||
character `a..z` (mod 26), and has no effect on
|
||||
|
|
Loading…
Add table
Reference in a new issue