Andy Wardley <[EMAIL PROTECTED]> 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


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to