[Templates] ttree questions
Harald Joerg
haj@oook.m.uunet.de
Mon, 06 Oct 2003 16:08:35 +0200
Andy Wardley <abw@andywardley.com> writes:
> [...]
>> Is there any way to get ttree to generate files with a different
>> suffix than the template?
>
> No, not that I know of. Would be nice, though.
Generating files with a different suffix should be possible by
[% FILTER redirect %]ing the output from within the template.
I've been using such a trick to create *.txt and *.html from common
input files *.tt2. My template (invoked by ttree's 'process'
directive) takes care for filtering the original .tt2 files in both
formats.
I found no way to prevent ttree from creating (empty) *.tt2 files in
the output directory, but alas, they are not useless: They serve as
"timestamps" to check which of the input files have to be re-processed
next time.
--
Cheers,
haj