 | Plugin Availability
The Render Tool plugin is available in the blojsom add-on bundle. This is a separate download from the blojsom.war file. |
Description
This is a wrapper for the Velocity Render Tool
where an object is added to the context to evaluate the given strings as VTL (Velocity Template Language) using the given context.
Installation and Setup
After downloading the blojsom add-on bundle, copy the blojsom-addon-plugins-{version}.jar and velocity-tools-1.1.jar file into your /WEB-INF/lib directory.
In your /WEB-INF/classes/blojsom-plugins.xml file, add the following:
<bean id="render-tool" class="org.blojsom.plugin.tools.RenderToolPlugin" init-method="init" destroy-method="destroy"/>
You may then add "render-tool" to the end one of the flavor-based plugin chains.
Usage and URL Parameters
There are no URL parameters to control the operation of the Render Tool plugin.
Context Attributes and Types
The following table describes the context attributes that are available and their associated type.
| Context key |
Input or Output |
Type |
Description |
| BLOJSOM_PLUGIN_RENDER_TOOL |
Output |
org.apache.velocity.tools.generic.RenderTool object |
View the documentation on the tool for information on its methods. |