Update MANUAL.txt for doctemplates changes.

This commit is contained in:
John MacFarlane 2019-11-18 20:10:32 -08:00
parent 06124fb863
commit 0d4813d7ba

View file

@ -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