using HTML::Template

A

Aeden Jameson

When you create an HTML::Template object under apache/mod-perl 2 I have to
specify the absolute path of the html template file. What do I need to do
to use relative paths? Are there any drawbacks to such use?
Currently when I use relative paths I get an error message in the apache log
that the file cannot be found.

Cheers,
Aeden Jameson
 
C

Chris

Aeden said:
When you create an HTML::Template object under apache/mod-perl 2 I have to
specify the absolute path of the html template file. What do I need to do
to use relative paths? Are there any drawbacks to such use?
Currently when I use relative paths I get an error message in the apache log
that the file cannot be found.

So are you saying that...

my $tmpl = HTML::Template->new(
filename => 'sample.tmpl',
path => [
'/path/to/templates',
'/other/path/to/templates',
]
);

doesn't work under mod_perl, specifically the 'path' named anonymous
array argument?

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top