Ovid wrote:

> I now have printer-friendly pages using
> http://www.perlmonks.org/index.pl?node_id=354173

Looks quite well, so I seem to be too late here with my old-fashioned
TT alternative...

You can solve the problem by running ttree twice: One run for the
usual "online" stuff, a second run for printer-friendly pages.

Basically it's like that:

   ttree -f site.cfg -f online.cfg
   ttree -f site.cfg -f print.cfg

Most stuff will be in site.cfg.  The differences between online.cfg
and print.cfg are

 * different wrapper templates

 * different dest directories

If you are creating the cfg files as on the badger's page 402, all of
them can be created in one sweep, almost as easily as the one from the
example.  Linking to the printer-friendly pages can be done with
location variables, as in the book.

An extra wrapper template for printing may allow to add printer layout
more easily, at the expense of having another set of static pages on
your web server.
--
Cheers,
haj


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

Reply via email to