aboutsummaryrefslogtreecommitdiff
path: root/MANUAL.txt
diff options
context:
space:
mode:
Diffstat (limited to 'MANUAL.txt')
-rw-r--r--MANUAL.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index 4763a8130..65ab23b8b 100644
--- a/MANUAL.txt
+++ b/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