|
Hi,
I have a strange problem on Template->new()
method on Template Toolkit in a cgi script.
The program just stops at Template->new()
instead of creating a new object. Could anybody give me some clues on how to
resolve it?
Thanks in advance.
Anya
The program looks like:
sub template_parse
{ my $template_file = shift; my $vars_hashref = shift; print 'before creating
Template->new';
my $tt = Template->new({INTERPOLATE
=> 1, INCLUDE_PATH => ["$root/cgi-bin"]}) || die
"$Template::ERROR\n";
print 'after creating
Template->new'; my $parsed; $tt->process($template_file, $vars_hashref, \$parsed) or die $$tt->error; return \$parsed;
} The output is
before creating Template->new
it stops at my $tt.....; and no error message
shows.
This subroutine is inside a cgi script with a https
request to another server with XML format. Template toolkit is used to display
the response.
The same subroute works at other cgi scripts
without https request.
|
- [Templates] very strange Template->new behave Anya
