Re: [Maypole] Maypole + Mason - A good idea?

From: David R. Baird (dave at riverside-cms.co.uk)
Date: Fri Oct 08 2004 - 17:34:54 BST


On 8 Oct 2004 at 17:06, Paul Makepeace wrote:

> Je 2004-10-08 17:02:22 +0100, Simon Wistow skribis:
> > On Fri, Oct 08, 2004 at 04:50:25PM +0100, David R. Baird said:
> > > is content wrapping. Basically, you get headers and footers
> > > automatically added to your templates without having to put any hooks
> > > in to the template itself to pick them up. That turns out to be a big
> > > deal, and I'd want it in any templating system I was using.
> >
> > You can, of course, do this in Template::Toolkit using the PRE_PROCESS
> > and POST_PROCESS options
> >
> > http://www.template-toolkit.org/docs/plain/Modules/Template.html#Runtime_Processing_Options
>
> And then there's the WRAPPER facility too, and those can be stacked.
> Even the 'filling' can be moved around with some templating logic.
> Very cool.

I stand corrected! The WRAPPER sounds similar to Mason's 'component
call with content' syntax. PRE- and POST_PROCESS are closer to the
mark though.

Got dhandlers in TT?

d.

-- 
Dr. David R. Baird
Riverside Content Management Systems
http://www.riverside-cms.co.uk

_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT