Simon Wistow wrote:
> What I'd really like to do is something like
>
> [% USE Chump %]
> [% Chump.new_type('equal','=', $sub, 'ma+tch') %]
> [ var FILTER chump %]
>
> Is that possible?
Yes, have the Chump plugin new() method create a Chump and return a
reference to it. Then you can all the new_type() methods, et al,
directly.
Also have it call $content->define_filter( chump => sub { } ) to install
your 'chump' filter sub.
> *waves* shyly at the TT people
/me waves back :-)
HTH. Shout if it doesn't.
A
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates