Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Dynamic includes in Template::Toolkit

by zby (Vicar)
on May 07, 2003 at 11:34 UTC ( [id://256165]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [cut]
    The INCLUDE directive automatically quotes the filename specified, as 
    +per INSERT described above. When a variable contains the name of the 
    +template for the INCLUDE directive, it should be explicitly prefixed 
    +by '$' or double-quoted
    ...
        [% INCLUDE   myheader  %]            # 'myheader'
        [% INCLUDE  $myheader  %]         # 'my/misc/header'
        [% INCLUDE "$myheader" %]         # 'my/misc/header'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found