[Templates] ttree questions
David Dyer-Bennet
dd-b@dd-b.net
10 Oct 2003 12:15:59 -0500
Andy Wardley <abw@andywardley.com> writes:
> '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.
I really appreciate that one, thanks.
--
David Dyer-Bennet, <dd-b@dd-b.net>, <www.dd-b.net/dd-b/>
RKBA: <noguns-nomoney.com> <www.dd-b.net/carry/>
Photos: <dd-b.lighthunters.net> Snapshots: <www.dd-b.net/dd-b/SnapshotAlbum/>
Dragaera mailing lists: <dragaera.info/>