Andy Wardley <[EMAIL PROTECTED]> writes:
> On Thu, Jun 28, 2001 at 08:14:24PM +0200, Jonas Liljegren wrote:
> > But then I thought that it would be better to specify the defaults
> > just one time, as with plugins. So I made a plugin of the filter
> > (called Template::Plugin::HTML::FromText):
> >
> > sub new {
> > my $class = shift;
> > my $context = shift;
> > my $args = ref $_[-1] eq 'HASH' ? pop(@_) : {};
>
> You could do something like:
>
> $context->define_filter(HTMLFromText => \&filter);
> or
> $context->define_filter(HTMLFromText => \&filter_factory, 1);
Yes. I tried that first. But then I wonderd what would happen if I had
multipple USE in diffrent blocks.
Would one filter definition just override previous filter definitions?
Would I get multipple filters accumulating in memory?
--
/ Jonas - http://jonas.liljegren.org/myself/en/index.html