net.sf.doolin.template.velocity
Class VelocityTemplate
java.lang.Object
net.sf.doolin.template.support.AbstractTemplate
net.sf.doolin.template.velocity.VelocityTemplate
- All Implemented Interfaces:
- Template
public class VelocityTemplate
- extends AbstractTemplate
Velocity template
- Author:
- Damien Coraboeuf
|
Constructor Summary |
VelocityTemplate(org.apache.velocity.Template aTemplate)
Constructor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityTemplate
public VelocityTemplate(org.apache.velocity.Template aTemplate)
- Constructor
- Parameters:
aTemplate - Velocity template which is encapsulated
generate
public void generate(Writer writer,
Map<String,Object> context)
- Description copied from interface:
Template
- Generates the template to an output stream using a given context.
- Parameters:
writer - Writer to generate the template in.context - Template context, containing all needed variables.- See Also:
VelocityContext,
Template.merge(org.apache.velocity.context.Context, Writer),
Template.generate(Writer, Map)
Copyright © 2011. All Rights Reserved.