cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonas Ekstedt <ekst...@ibg.uu.se>
Subject Re: [RFC] "Cocoon Templates": Name and Tag Interface
Date Mon, 29 Nov 2004 23:03:49 GMT
On Mon, 2004-11-29 at 22:26 +0100, Leszek Gawron wrote:
> Jonas Ekstedt wrote:
> > 
> > How about allowing a "context-populator" parameter to the template
> > generator. As an example, suppose we want to populate the context with a
> > query from a db. 
> > 
> > In sitemap:
> > 
> > <map:generate type="template" src="showQuery">
> >   <map:parameter name="context-populator" src="com.MyPopulator"/>
> > </map:generate>
> The question is: do we really need this? Once can always use actions to 
> populate request attributes with needed data. Looks like a duplication 
> of functionality.

Agree

Cheers Jonas


Mime
View raw message