Vincent Massol wrote:
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
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs