[Maypole] Maypole + Mason - A good idea?

David R. Baird dave@riverside-cms.co.uk
Fri, 08 Oct 2004 17:34:54 +0100


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