General Actions:
| Executes a Velocity script and apply current page parser on the result |
| Type | JAR |
| Developed by | |
| License | GNU Lesser General Public License 2.1 |
| Bundled With | XWiki Enterprise, XWiki Enterprise Manager |
Table of contents
See example below
Velocity macro extends Script Macro and support all its parameters (except the language selection which is always velocity).
Following are Velocity macro specific parameters:
| Name | Optional | Allowed values | Default value | Description |
|---|---|---|---|---|
| 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. |
| output | yes | true/false | true | Indicate that the resulting output will be inserted back into the document. |
| wiki | yes | true/false | true | Indicate if the result of the script execution has to be parsed by the current wiki parser. If not, it's parsed as plain text. |
Some velocity code