Type | javamacro |
Category | |
Developed by | Unknown |
Rating | |
License | Unknown |
Table of contents
Description
This is a shortcut for ScriptMacro 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 ScriptMacro 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