Changes for page Writing XWiki Rendering Macros in wiki pages
Last modified by Clément Desableau on 2023/06/01
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -102,8 +102,9 @@ 102 102 As you might have realized already, direct binding of parameters is not supported at the moment. That is, you cannot access //greetUser// parameter with **$greetUser**. Instead you must use **$xcontext.macro.params.greetUser**. We plan to introduce some form of direct parameter binding in near future. 103 103 104 104 Since {{info}}11.5RC1{{/info}}, it is also possible to display the content of a macro parameter by using a dedicated macro: 105 -{{code language="none"}}Hello {{wikimacroparameter name="greeUsers" /}} 106 -{{code}} 105 +{{code language="none"}} 106 +Hello {{wikimacroparameter name="greeUsers" /}} 107 +{{/code}} 107 107 108 108 Finally, we can test our new version of **hello macro** with the following invocation: 109 109 ... ... @@ -118,7 +118,7 @@ 118 118 #set ($greet = true) 119 119 {{hello greetUser="$greet"/}} 120 120 {{/velocity}} 121 -{{/code}} {{/code}}122 +{{/code}} 122 122 123 123 == Translations == 124 124