On Thu, Jun 3, 2010 at 11:05, Thomas Mortagne <[email protected]> wrote: > On Thu, Jun 3, 2010 at 10:31, Vincent Massol <[email protected]> wrote: >> Hi devs, >> >> We have avoided this discussion but it's time to settle it. We need to >> decide if there are candidate macros that we should write as wiki macros in >> our default XE distribution. And if so what are the rule for deciding >> whether a macro should be written as a wiki macro or as a java macro. >> >> Some ideas: >> - java macros are much easier to test >> - java macros are easier to develop since you have a full-fledged IDE >> (debugging, syntax coloring, code validation, etc) >> - java macros can obey styling rule, such as checkstyle passing >> - wiki macros can be removed so users can't be sure the wiki macro will >> always be there since it's only provided with the default XAR
- wiki macros don't support typed parameters (yet) - wiki macros don't support bean validation (yet, but it can be "done by hand") > > And for the pros on wiki macros: > > - wiki macro can be easily modified from the wiki when you want to customize > it > >> >> Proposal >> ======= >> >> - If the macro is a generic macro then it should be written as a Java macro >> - If the macro is application-specific (for ex a macro specific to the Blog >> application) then it can be written as a Wiki macro > > - when the macro depends on some wiki page then it should probably be > written as Wiki macro (more or less the same thing than your previous > point for more clear than way ;)) > >> >> WDYT? >> >> Thanks >> -Vincent >> >> _______________________________________________ >> devs mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/devs >> > > > > -- > Thomas Mortagne > -- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

