Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 monks are mute...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2016-12-05 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (87 votes). Check out past polls.