in reply to Can you include templates in Template Toolkit without specifying the file extension?
In Template Toolkit you can include a block of code inside the ttml file or altogether an another ttml file. For example you have ttml file called "test" under lib folder. Below is how it is coded
[% INCLUDE lib/test %]or you have a block of code in the same file below is how coded.
[% INCLUDE perlmonks %] [% BLOCK perlmonks %] <div>test</div> [% END %]
I am not sure you can call file with any other extension apart from ttml which do not have any extension.
|
|---|