On Wed, 2002-04-10 at 08:32, darren chamberlain wrote:
> Can't you subclass Template::Context to get the same effect more
> cleanly?
>
> ...
>
> And then, in your processor:
>
> use Template::Config;
> Template::Config::CONTEXT_MODULE = "My::Template::Context";
>
> And proceed as usual?
I do something like this in OpenInteract, overriding the 'template'
method so I can use different behavior for including templates like
'INCLUDE this::that'. Instead of the above I use:
use Template;
...
$Template::Config::CONTEXT = 'OpenInteract::Template::Context';
my $template = Template->new( ... ) || die "blah";
Which seems to work ok. Probably a tomayto/tomahto thing.
Chris
--
Chris Winters ([EMAIL PROTECTED])
Building enterprise-capable snack solutions since 1988.