Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Template Toolkit -- looking for files in all the wrong places.

by sutch (Curate)
on Apr 02, 2001 at 21:12 UTC ( #69064=note: print w/ replies, xml ) Need Help??


in reply to Template Toolkit -- looking for files in all the wrong places.

Here is how I handle it in one of my scripts:

my $template = Template->new({'INCLUDE_PATH' => '/var/www/template'}); $template->process('home/index.tt2');

The file is located at:
/var/www/template/home/index.tt2

Maybe TT2 operates differently under Windows? The only difference that I can see is that you're INCLUDE_PATH has a trailing slash. I do know that TT2 does not like an initial slash for with the filename or file path in the process method.


Comment on Re: Template Toolkit -- looking for files in all the wrong places.
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://69064]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2015-07-07 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls