Groovy Macro
Version 16.1 by Thomas Mortagne on 2011/10/27 19:24
Adds ability to write scripts in Groovy in wiki pages |
Type | javamacro |
Category | |
Developed by | Unknown |
Rating | |
License | GNU Lesser General Public License 2.1 |
Table of contents
Description
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}}
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}}
def list = ["one", "two"]
list.each { item ->
println "* ${item}"
}
{{/groovy}}
Result
- one
- two