[Templates] Changeing the INCLUDE_PATH
Perrin Harkins
pharkins@etoys.com
Tue, 15 Aug 2000 11:36:49 -0700 (PDT)
On Tue, 15 Aug 2000, Jonas Liljegren wrote:
> On Tue, 15 Aug 2000, Perrin Harkins wrote:
>
> > On Tue, 15 Aug 2000, Jonas Liljegren wrote:
> > > I remember that we talked about this. How do I change the INCLUDE_PATH of
> > > an existing template object?
> >
> > The method for that is in the Template::Provider class. You can reach it
> > like this:
> > $tt->service->context->load_templates->[0]->include_path($include_path)
>
> I can only conclude that you are not supposed to do this.
Just because you don't like the syntax? Add a method to Template.pm that
does the same thing then. Or keep a reference to a Template::Provider
object that you pass in each time you call Template->new(), so that you
can call the include_path() method on it instead.
- Perrin