Hi,
I use the syntax
[% l("text[_1]...", arg) %]
to internationalize my project[1]. I have a small problem with using
the `arg' parameter:
Sometimes the substitute text must be escaped. Before I simply did
Blabla [% foo | html %] bar,
but wonder how to achieve a similar result after internationalizing?
I.e. I want to do something similar to
[% l("blabla [_1] bar", arg.html) %]
or
[% l("blabla [_1] bar", arg | html) %].
As I am lazy I don't want to re-implement the HTML filter, but instead
use it on macro parameters. Is there some way to do this? I have found
nothing helpful in the documentation so far.
Regards,
Ansgar
[1] Actually I am using Catalyst and Catalyst::Plugin::I18N together
with Template Toolkit.
--
PGP: 1024D/595FAD19 739E 2D09 0969 BEA9 9797 B055 DDB0 2FF7 595F AD19
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates