|Executes a Velocity script and apply current page parser on the result|
|License||GNU Lesser General Public License 2.1|
XWiki Enterprise, XWiki Enterprise Manager
Table of contents
Executeson the content of the macro.
What's important to understand is that the Velocity engine will execute first on the content and then only, if wiki is true (which is the default) , the resulting content will be parsed using a wiki content parser.
Velocity macro extends language selection which is always velocity).and support all its parameters (except the
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 for more details.|
#set($words = ["Some", "velocity", "code"])
#foreach($word in $words)
Shows how to do some dynamic include.
#if ( some condition)
#set ($ref = "page1")
#set ($ref = "page2")
This will include page1 or page2 depending on the condition.
This extension has been tested with the following configurations.
|Extension Version||XWiki Flavor||Notes|
|6.1||XWiki Enterprise 6.1|
Prerequisites & Installation Instructions
We recommend using theto install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager).
You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.
- org.xwiki.platform:xwiki-platform-rendering-macro-script 9.0
- org.xwiki.rendering:xwiki-rendering-transformation-macro 9.0