!7 // see function "velocityEval" (#1027770) for shortened version lib 1400370 // velocity lib 1011966 // slf4j lib 1003719 // lang3 import org.apache.velocity.*; import org.apache.velocity.app.*; sS template = "Hello $name!"; p-exp { Velocity.init(); new VelocityContext context; context.put("name", "Velocity"); new StringWriter sw; assertTrue("Velocity evaluate", Velocity.evaluate(context, sw, "test-template", template)); printWithIndent("HTML> ", sw); }