Tag Archives: java

Apache Velocity – Read Templates from JAR

Apache Velocity comes bundled with different resource loaders, but none of them are really suitable for reading templates that are bundled in your JAR. By using a String Resource Loader, templates can be loaded using getResourceAsStream (or anything else that can yield a String).

Read more »