[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] ttree-2.22 copy seems to be failing - solved

2010-01-01 Thread David Favor
Problems was a suffix directive, as suffix directives override copy directives. David Favor wrote: I'm trying to copy assets like robots.txt, various .css|.js files and ico files from src/. to html/. and I seem to be missing the correct syntax or there's a problem with ttree. My directory

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