[Templates] How to access filename of template inside template

2010-01-01 Thread David Favor
Someone let me know how to get the filename of current file being processed. In other words, if keyword1-keyword2.tt2 is being processed, let me know how to access the filename keyword1-keyword2.tt2 from within the file. Thanks. -- Love feeling your best ever, all day, every day? Click

Re: [Templates] How to access filename of template inside template

2010-01-01 Thread Octavian Râsnita
From: David Favor da...@davidfavor.com Someone let me know how to get the filename of current file being processed. You can use [% template.name %]. Octavian ___ templates mailing list templates@template-toolkit.org

Re: [Templates] How to access filename of template inside template

2010-01-01 Thread Richard Thomas
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