On Jul 31, 2008, at 12:54 PM, Jean-Vincent Drean wrote:
> On Thu, Jul 31, 2008 at 12:37 PM, Vincent Massol
> <[EMAIL PROTECTED]> wrote:
>> [snip]
>>
>> Notes:
>> * I think 1) is cleaner and easier to read
>
> Right, when you have multiple args the XMLish syntax helps.
>
>> * There's no default param in 1) so you don't write something like:
>> {{include:Main.WebHome}}. You have to write: {{include
>> document=Main.WebHome}}
>
> I guess we have to keep the "" : {{include
> document="Main.WebHome"}}, right ?
No the 2 syntaxes are allowed by wikimodel. The quotes are only needed
when there's a space and probably also when there's an equal sign too
in the value.
> BTW it's close from the current #includeInContext("Main.WebHome")
> macro in terms of char length.
Not quite since that would be:
{{include document="Main.WebHome" context="current"/}}
Right now the default is context = new.
Thanks
-Vincent
>> Which do we want?
>>
>
> +1 to adopt 1).
>
> JV.
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs