Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Can you include templates in Template Toolkit without specifying the file extension?

by choroba (Cardinal)
on May 16, 2017 at 19:13 UTC ( [id://1190402]=note: print w/replies, xml ) Need Help??


in reply to Can you include templates in Template Toolkit without specifying the file extension?

The syntax [% INCLUDE header %] is usually used for block inclusion, i.e. somewhere in the same file, or in the file from which the template has been called, the block of the name header should be defined. See INCLUDE.

If no such block existed, file named header (i.e. with no extension) would be included.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
  • Comment on Re: Can you include templates in Template Toolkit without specifying the file extension?
  • Select or Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-04-25 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found