From 0d4813d7ba73efd537ebef6a7e2ebd5bf8e708a4 Mon Sep 17 00:00:00 2001 From: John MacFarlane <jgm@berkeley.edu> Date: Mon, 18 Nov 2019 20:10:32 -0800 Subject: [PATCH] Update MANUAL.txt for doctemplates changes. --- MANUAL.txt | 12 ++++++++---- 1 file 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