Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Welcome to the Monastery
 
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 meditating upon the Monastery: (16)
As of 2014-04-18 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (469 votes), past polls