Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Template Toolkit: template paths, INCLUDE_PATH, error

by 7stud (Deacon)
on Jan 06, 2015 at 11:37 UTC ( [id://1112326]=note: print w/replies, xml ) Need Help??


in reply to Template Toolkit: template paths, INCLUDE_PATH, error

And now I can even get my INCLUDE blocks in my template to work:

form.html:

[% INCLUDE templates/header.html title = "Results page" %] <div>From template:</div> <div>[% message %]</div> [% INCLUDE templates/footer.html%]
I hope that helps somebody else. One tip: don't forget the braces around the INCLUDE_PATH:
my $template = Template->new({<----*****HERE INCLUDE_PATH => '/Users/7stud/perl_programs/cgi_projects/1proj' }); ^ | | *****AND HERE

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1112326]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2024-04-23 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found