Ok, I mistaked in process method for welcome and in permissions for my 
directory, now permissions are

rwxr-xr-x

and script/template works.

Thank you.

Savio

--- Ven 26/2/10, Ronald J Kimball <[email protected]> ha scritto:

> Da: Ronald J Kimball <[email protected]>
> Oggetto: Re: [Templates] I: problem in generating template with perl and CGI
> A: "dark0s" <[email protected]>
> Cc: [email protected]
> Data: Venerdì 26 febbraio 2010, 15:49
> 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

Reply via email to