cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: [Vote] Cocoon Advanced Control Flow
Date Wed, 09 Jul 2003 16:50:25 GMT
Sylvain Wallez wrote:

> Reinhard Pötz wrote:
>
> +1 on everything but [B] :
>
>>  [B] Functions provided by scripts can be called within the sitemap
>>      using:
>>           <map:call function="[yourFunction]">
>>        <map:parameter name="x" value="y"/>[2]
>>      </map:call>
>>            There are no special restrictions where you can put
>>      it within <map:pipeline .../> (e.g. put it within action elements)
>>
>
> As pointed out recently by Jeremy, <map:parameters> inside a 
> <map:call> are currently passed as positional arguments to the JS 
> function, which can be very confusing since the sitemap syntax uses 
> named parameters. Jeremy also proposed these parameters to be passed 
> as a single Map-like object to the function.
>
> So I'm +1 for the syntax but I'd like the parameters to be passed by 
> named.

Uh, I already added this. Sorry, forgot to mention.

Chris


Mime
View raw message