[Templates] ttree questions

Andy Wardley abw@andywardley.com
Wed, 8 Oct 2003 13:44:05 +0100


'Twas asked:
>Is there any way to get ttree to generate files with a different
>suffix than the template?

Mark Anderson responded:
> Ok, here is a patch that does it.

Thanks Mark, I've applied a slight variation of this.

In my version the suffix option can be used multiple times to define 
different extensions to be mapped from src to dest.  I thought this 
gave a little more flexibility.

e.g.
  $ ttree --suffix tt2=html --suffix htm=html

This will change all '.tt2' and '.htm' extensions to '.html', leaving all
others as they are.

A