On Fri, Jul 27, 2001 at 03:06:57PM -0400, Chris Winters wrote:
> (1) Create the context object and pass it in to the Template->new()
> call:
>
> my $context = OpenInteract::Template::Context->new();
> my $template = Template->new( CONTEXT => $context );
[...]
> Both work fine initially, but if I add the argument:
>
> PLUGINS => { OI => 'OpenInteract::Template::Plugin' },
You need to pass the PLUGINS option to the Context object constructor:
my $context = OpenInteract::Template::Context->new( PLUGINS => { ... } );
my $template = Template->new( CONTEXT => $context );
HTH
A