Registry / utility / velocity-engine-core

velocity-engine-core

JSON →
library2.4.1javamavenunverified

Apache Velocity is a general purpose template engine that provides a simple and powerful way to generate dynamic content from templates.

<dependency> <groupId>org.apache.velocity</groupId> <artifactId>velocity-engine-core</artifactId> <version>2.4.1</version> </dependency>
INSTALL
IMPORT
SIG · VELOCITY-ENGINE-CO
V
velocity-engine-core
utilityjavav2.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

VelocityEngine
org.apache.velocity.app.VelocityEngine

Minimal example showing how to initialize VelocityEngine, load a template, and merge it with a context.

import org.apache.velocity.app.VelocityEngine; import org.apache.velocity.Template; import org.apache.velocity.VelocityContext; import java.io.StringWriter; public class Quickstart { public static void main(String[] args) { VelocityEngine ve = new VelocityEngine(); ve.init(); Template t = ve.getTemplate("hello.vm"); VelocityContext context = new VelocityContext(); context.put("name", "World"); StringWriter writer = new StringWriter(); t.merge(context, writer); System.out.println(writer.toString()); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.4.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
velocity-engine-core — mvn dependency:get velocity-engine-core · libregistry