Groovy Macro
This is a XWiki macro, bundled with all the XWiki products by default.
Macro developed by the XWiki Development Team.
This macro cannot currently be downloaded separately.
Macro developed by the XWiki Development Team.
This macro cannot currently be downloaded separately.
Groovy Macro
This is a shortcut for Script Macro equivalent to {{script language="groovy"}} to execute groovy scripts.Usage
{{groovy}}
def list = ["one", "two"]
list.each { item ->
println "* ${item}"
}
{{/groovy}}Parameters definition
See the Script Macro for details.Example
{{groovy}}
def list = ["one", "two"]
list.each { item ->
println "* ${item}"
}
{{/groovy}}Result
- one
- two