Package com.jcabi.velocity
Class VelocityPage
java.lang.Object
com.jcabi.velocity.VelocityPage
Velocity page, builder/wrapper around Apache Velocity template.
The template should be in classpath:
String text = new VelocityPage("com/foo/my-template.vm")
.set("name", "John Doe")
.toString();
Logging is forwarded to SLF4J by Apache Velocity 2.x.
The class is mutable and thread-safe.
- Since:
- 0.1.6
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityPage(String res) Public ctor, with absolute resource name in classpath. -
Method Summary
-
Constructor Details
-
VelocityPage
Public ctor, with absolute resource name in classpath.- Parameters:
res- Name of resource with template (absolute resource name in classpath)
-
-
Method Details