Wiki source code of Writing XWiki Rendering Macros
Version 17.10 by Vincent Massol on 2021/11/03
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | These tutorials explain how to implement XWiki Macros using XWiki's [[Rendering Architecture>>extensions:Extension.Rendering Module]]. | ||
2 | |||
3 | = Implementation Options = | ||
4 | |||
5 | XWiki Rendering macros can be written either in Java or directly in wiki pages: | ||
6 | |||
7 | * [[XWiki Rendering Macro in Java Tutorial>>Documentation.DevGuide.RenderingMacroTutorial]] | ||
8 | * [[XWiki Rendering Macro in Wiki page Tutorial>>Documentation.DevGuide.Tutorials.WritingMacros.WikiMacroTutorial.WebHome]] | ||
9 | |||
10 | = Comparison = | ||
11 | |||
12 | If you're wondering whether to write your Rendering Macro in Java or in a wiki page, the following table provides some comparison between both options. | ||
13 | |||
14 | |=Characteristics|=Java Macro|=Wiki Macro | ||
15 | |Easy to debug|(/)|(x) | ||
16 | |Easy to write an automated test for|(/)|(x) | ||
17 | |Optimized for performance|(/)|(x) | ||
18 | |Doesn't require development skills|(x)|(/) | ||
19 | |Easy for a user to customize|(x)|(/) | ||
20 | |Fast to write and manually test|(x)|(/) |