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
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
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
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