VelocityEmail.java | Class | This is a simple static accessor to common Velocity tasks such as
getting an instance of a context as well as handling a request for
processing a template.
Context context = TurbineVelocity.getContext(data);
context.put("message", "Hello from Turbine!");
String results = TurbineVelocity.handleRequest(context, "helloWorld.vm");
data.getPage().getBody().addElement(results);
author: John D. |