Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Headers in Template Toolkit

by amw1 (Friar)
on Mar 03, 2005 at 16:49 UTC ( [id://436292]=note: print w/replies, xml ) Need Help??


in reply to Re: Headers in Template Toolkit
in thread Headers in Template Toolkit

There are actually 3 ways to do this
1) [% INSERT "whatever.txt" %]
Inserts the contents of whatever.txt without doing any template substitutions on it
2) [% INCLUDE "whatever.tt" %]
This processes the template and inserts it. Variables are localized (i.e. changes to variables in whatever.tt are not reflected in the parent template)
3) [% PROCESS "whatever.tt" %]
Same as above but variables are not localized. (i.e. changes to varibles in whatever.tt are reflected in the parent template)

More information can be found here here

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-29 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found