Is there any possibility to use template filters in Chameleon as I'm used to in Mako? In Mako one could do something like
${s | filter}
where filter
is a function mapping strings to strings and Mako applied filter
to s
and outputs it (after escaping HTML entities). So one could easily do things like
${s | nl2br}
I'm aware that the Chameleon way of doing it is Line Breaking in Chameleon. But I have more applications for this filters so I'm wondering if something similar is supported in Chameleon.
No, there isn't. Do the processing in your view instead, or use python code in your TALES expressions.