dark0s wrote:
> My perl code is the following, before I mistaked in INCLUDE_PATH:
>
> #!/usr/bin/perl
>
> use CGI;
> use CGI::Carp qw(fatalsToBrowser);
> use Template;
>
> my $cgi = CGI->new();
> print $cgi->header('text/html');
>
> my $tt2 = Template->new({
> INCLUDE_PATH => ['/home/savio/templates/src',
> '/home/savio/templates/lib'],
> PRE_PROCESS => 'config/main',
> EVAL_PERL => 1,
> }) || die $tt2->error(), "\n";
>
> $tt2->process('welcome.html') or die $tt2->error(), "\n";
>
>
> The error message is "file error - page.html: not found".
> What is the problem?
Your script processes 'welcome.html', but the error message references
'page.html'. Are you sure this is the correct code and the correct
error message?
What happens when you run the script from the command line?
Ronald
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates