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?


      


      

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to