Plexus Velocity Component
A component which provides Apache Velocity templating engine integration.
Typical use
A typical use:
VelocityContext context = new VelocityContext();
VelocityComponent velocityComponent = lookup( VelocityComponent.class );
Template template = velocityComponent.getEngine().getTemplate( "path to your template" );
StringWriter writer = new StringWriter();
template.merge( context, writer );
Typical Configuration
Plexus Velocity Component comes with a default configuration: it is
expected to be customized to match local specific need. This is done by creating
VelocityComponentConfigurator
component implementation. Presence of this component is
optional.
See Velocity Configuration reference documentation for details on available configurations.