Re: [Templates] Multiple outputs from ttree

[prev] [thread] [next] [Date index for 2004/10/15]

From: Harald Joerg
Subject: Re: [Templates] Multiple outputs from ttree
Date: 22:07 on 15 Oct 2004
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
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

Re: [Templates] Multiple outputs from ttree
Mark Mills 05:48 on 10 Oct 2004

Re: [Templates] Multiple outputs from ttree
David Wheeler 19:19 on 10 Oct 2004

Re: [Templates] Multiple outputs from ttree
Harald Joerg 22:07 on 15 Oct 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52