logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: PROCESS/INCLUDE on relative files: msg#00073

Subject: Re: PROCESS/INCLUDE on relative files
Perrin wrote:
On Thu, 2004-02-19 at 16:38,
Jason Gottshall wrote:
> Unfortunately, the 
> INCLUDE_PATH is defined when the Template::Service object is
first 
> instantiated.

...but can be changed at any time, just by calling the include_path()
method in Template::Provider.  

...snip...

Or you can just keep a reference to the array ref you pass in when you call Template->new() and change it any time.

OK, here's where my understanding of mod_perl starts to get hazy. Couldn't there be more than one process utilizing the Template::Service object at the same time? If so, wouldn't there be a danger of clobbering another process's setting of INCLUDE_PATH? Or does a process get a "lock" on the object till it's done? If that's the case, then solution looks like a winner (and I'll happily wait a while for Darren to be in the mood to make the 10-character change to Template::Context :-)

Jason



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>