There is also [% component.name %], which will give you the name of  
the template being INCLUDEd or PROCESSed. [% template.name %] is the  
main template. See the TT  FAQ... 
http://template-toolkit.org/docs/faq/index.html

A related question...

We customize the INCLUDE_PATH on each request (Catalyst), and if  
there's a way to obtain the path of the template currently being  
processed, that would be awesome.

cheers
RET

________________________
Sent from my iPhone

On 02/01/2010, at 6:55 AM, Octavian Râsnita <[email protected]> wrote:

> From: "David Favor" <[email protected]>
>
>
>> Someone let me know how to get the filename of current
>> file being processed.
>>
>
>
> You can use [% template.name %].
>
> Octavian
>

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to