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