summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-10-25 11:24:29 -0400
committerKaz Kylheku <kaz@kylheku.com>2011-10-25 11:24:29 -0400
commit8895368748f50ab84f9006c6df7d82edc4019817 (patch)
tree93ff71e50d44e9cfbcac752f62d64bd3838622f2 /txr.1
parent763f15ad2b8327a04b0dad97982bf19150aa7397 (diff)
downloadtxr-8895368748f50ab84f9006c6df7d82edc4019817.tar.gz
txr-8895368748f50ab84f9006c6df7d82edc4019817.tar.bz2
txr-8895368748f50ab84f9006c6df7d82edc4019817.zip
* txr.1: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.111
1 files changed, 9 insertions, 2 deletions
diff --git a/txr.1 b/txr.1
index dff6cb66..89dd966f 100644
--- a/txr.1
+++ b/txr.1
@@ -3060,14 +3060,21 @@ This function binds the out parameter to "bar" if the in parameter
is "foo", otherwise it binds the out parameter to a copy of the in parameter.
This is a simple filter.
-To use the filter, use the syntax (fun foo_to_bar) in place of a filter name.
+To use the filter, use the syntax (:fun foo_to_bar) in place of a filter name.
For instance in the bind directive:
- @(bind "foo" "bar" :lfilt (fun foo_to_bar))
+ @(bind "foo" "bar" :lfilt (:fun foo_to_bar))
The above should succeed since the left side is filtered from "foo"
to "bar", so that there is a match.
+Of course, function filters can be used in a chain:
+
+ @(output :filter (:downcase (:fun foo_to_bar) :upcase))
+ ...
+ @(end)
+
+
.SS The Deffilter Directive
The deffilter directive allows a query to define a custom filter, which