org.blojsom.dispatcher
Class VelocityDispatcher.BlojsomRenderTool

java.lang.Object
  extended byorg.blojsom.dispatcher.VelocityDispatcher.BlojsomRenderTool
Enclosing class:
VelocityDispatcher

public class VelocityDispatcher.BlojsomRenderTool
extends java.lang.Object

Blojsom render tool mimics the functionality of the Velocity render tool to parse VTL markup added to a template

Since:
blojsom 2.24

Constructor Summary
VelocityDispatcher.BlojsomRenderTool(org.apache.velocity.app.VelocityEngine velocityEngine, org.apache.velocity.VelocityContext velocityContext)
          Create a new instance of the render tool
 
Method Summary
 java.lang.String evaluate(java.lang.String template)
          Evaluate a string containing VTL markup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityDispatcher.BlojsomRenderTool

public VelocityDispatcher.BlojsomRenderTool(org.apache.velocity.app.VelocityEngine velocityEngine,
                                            org.apache.velocity.VelocityContext velocityContext)
Create a new instance of the render tool

Parameters:
velocityEngine - VelocityEngine
velocityContext - VelocityContext
Method Detail

evaluate

public java.lang.String evaluate(java.lang.String template)
Evaluate a string containing VTL markup

Parameters:
template - VTL markup
Returns:
Processed VTL or null if an error in evaluation