On Thu, Mar 20, 2008 at 1:09 PM, Sergiu Dumitriu <[email protected]> wrote:
> Vincent Massol wrote: > > Hi, > > > > Since I'm rewriting the new Rendering component > > (see http://dev.xwiki.org/xwiki/bin/view/Design/NewRenderingArchitecture > ) > > , we need to finalize the new syntax we want to have. > > > > Right now I'v planned to use the same wiki syntax as now > > (http://platform.xwiki.org/xwiki/bin/view/Main/ > > XWikiSyntax#HTextStyles) with only one change: all macros now need to > > be closed. > > For example: {macro}...{/macro} and {macro:text|param=value|.../} > > > > Is that ok with everyone or do we want to make changes? > > OK for me. > > Do we want to be more XML-like and suggest the following syntax? > > {macro:table firstRowAsHeader="true" oddEvenRows="false"} > ... > {/macro:table} > > - use spaces as separators > - use macro: as a kind of namespace (or wiki: ?) > - require "" around attribute values > - require named parameters, as right now there is an implicit order, so > if the first parameter does not have a name, it is considered to be the > value for "that" parameter. > > But with fallbacks: > - also allow | as separators > - if the macro name does not start with macro:, and does not match > another kind of block element (like groovy or html), then consider it a > wiki macro > - also works without "" around values > - Print a warning in the log when a deprecated syntax is used > > WDYT? > > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

