[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Txr-users] Recent new features in git.
From: |
Kaz Kylheku |
Subject: |
[Txr-users] Recent new features in git. |
Date: |
Sat, 22 Oct 2011 17:07:36 -0700 |
User-agent: |
Roundcube Webmail/0.4 |
FEATURE:
When you specify an explicit list of variables in a collect using
:vars,
e.g.
@(collect :vars (a b c))
If the collect is successful, but doesn't match anything, the
variables still get bindings, to empty lists.
FEATURE:
New filters: :upcase and :downcase.
You can specify a filter in @(bind ...) now. You can specify
a filter to be applied to both sides when matching, like this:
@# fold x and y to upper case before comparing
@(bind x y :filter :upcase)
Of course if x has no binding, then it takes the unmodified
value of y.
Filters can be specified independently for the left and
right side:
@# matches if y is the HTML encoding of x
@(bind x y :rfilter :from_html)
FEATURE:
Compound filters.
If a filter is specified as a list of symbols, then that denotes
a compound filter formed by applying each filter from left
to right.
E.g. when substituting variables in output, convert them
to HTML, and then downcase:
@(output :filter (:to_html :downcase))
...
@(end)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Txr-users] Recent new features in git.,
Kaz Kylheku <=