cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dev at weitling <>
Subject Re: RT: map:call as generic non-redirecting controller code
Date Fri, 06 Jul 2007 10:30:04 GMT

Grzegorz Kossakowski wrote:
> Just to be sure, do you want to implement something like:
> <map:match pattern="sth">
>   <map:call function="prepareData"/>
>   <map:generate src="..."/> <- some protocol to obtain the prepared data
>   [...]
> </map:match>
> Such construct introduces new semantics for sitemap because data
> returned by <map:call> will be available _outside_ <map:call> element.
> Now it is important what is the scope where the data will be visible.
> Have you thought about it already?

Time for my 2 cents, sorry:
To be able to put a function call anywhere in a pipeline would be great,
having access to all the variables defined up till then. To return data
to the pipeline for further processing via a special protocol doesn't
look like the best way to go (IMO). Functions should only return (in the
classical way) data to other functions calling them.


View raw message