On 04/22/2011 11:22 AM, sono...@fannullone.us wrote:
On Apr 22, 2011, at 10:21 AM, Agnello George wrote:
my $tt = Template->new( INCLUDE_PATH => "/var/template" ) || die
"template process failed:$!";
$tt->process("form.tmpl",\%tag) || die $tt->error();
It appears that I'd have to explicitly name the template file in my
script. If that's the case, it's not exactly what I was looking for. I may
have to rethink my site to be able to do what I want.
On Apache, you can make the template directory and file locations
variables via the PATH_TRANSLATED environment variable (or corresponding
CGI::path_translated() method).
HTH,
David
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/