Velocity 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.
Velocity Macro
Executes a Velocity script and apply current page parser on the result.Usage
See example bellowParameters definition
| Name | Optional | Allowed values | Default value | Description |
|---|---|---|---|---|
| output | yes | true/false | true | Indicate if the macro should print something or not |
| filter | yes | none/html/indent | indent | Indicate a filter to apply on velocity content before and after script execution. The default filter (indent) remove all first whites spaces of lines to support code indentation. See Velocity Macro Filter for more details. |
Example
{{velocity}}
#set($words = ["Some", "velocity", "code"])
#foreach($word in $words)
$word ##
#end
{{/velocity}}