>
> > <head>
> >  <title>My Site</title>
> > </head>
> > <body>
> > <tr>
> >  <td>[% stick in body of article here "document.main" %]</td>
> >  <td>[% stick in related info here "document.sidebar" if it exists
%]</td>
> > </tr>
> > </body>
> >
> > That is, I have exactly one template that I apply to each document.
> > Right now I do that using Sandwich and some pre-processing, but I'd
> > much rather let a real template system do it so I can put parts in
> > various places.
> >
> > Is TT the something that will let me do this without too much
> > headache?
>
> I'm sure TT can do this.  In addition, pretty much all the templating
> systems probably accomodate this.  Under Mason this could be done very
> easily using the autohandler facility it provides.
>

Embperl (using the EmbperlObject handler) can do this in OO way, so you are
not only able, to have one template, but also override parts of it for
different parts of your side (as far as you need this). Additionaly the
template can call methods inside the "document.main", so you are able to
provide different method implentation with different documents. (e.g. for
passing different titles to the template)

See http://perl.apache.org/embperl/EmbperlObject.pod.cont.html for more
information.

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



Reply via email to