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.
|
---|
In Section
Seekers of Perl Wisdom