I'm +1 for the first one too (I don't liek those pipes within macro
parameters).
Guillaume
On Thu, Jul 31, 2008 at 12:46 PM, Thomas Mortagne <thomas.mortagne(a)xwiki.com
wrote:
> On Thu, Jul 31, 2008 at 12:37 PM, Vincent Massol <vincent(a)massol.net>
wrote:
> > Hi,
> >
> > Right now wikimodel implements the following syntax for xwiki macros:
> >
> > 1)
> >
> > {{macro param1="value1" param2="value2"}}content{{/macro}}
> > {{macro param1=value1 param2=value2}}content{{/macro}}
> >
> > This is different from the original proposal of:
> >
> > 2)
> >
> > {{macro:param1="value1"|param2="value2"}}content{{/macro}}
> >
> > Notes:
> > * I think 1) is cleaner and easier to read
> > * 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}}
> > * 2) is the same as the current syntax
> >
> > Which do we want?
>
> I prefer 1) for readability.
>
> >
> > I don't have any particular preference.
> >
> > Thanks
> > -Vincent
> >
> > _______________________________________________
> > devs mailing list
> > devs(a)xwiki.org
> >
http://lists.xwiki.org/mailman/listinfo/devs
> >
>
>
>
> --
> Thomas Mortagne
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/devs
>
--
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://blog.xwiki.com/