Hi,

For a project that I am doing I need the ability to construct Templates from
plain Strings. Bill Burton notes in
http://www.mail-archive.com/velocity-user%40jakarta.apache.org/msg09497.html
that, allthough Velocity.evaluate works fine, it is not best solution
performance-wise. I need to add some templates from different locations
(database etc) at runtime. These templates will be (re-)used often though,
so it made sense to write my own loader that does this.

Attached you find what I came up with. It would be great if you guys could
give it a place in the project (or probably better the tools subproject).
Its re-usable and users can make their own implementation. One drawback (?)
could be that you can only use one instance of the repository with the
current factory (see the javadocs for repository and factory). But, as
making more instances possible in a way that does not use the core Velocity
API would make it much harder to use the API from a users perspective, I
decided to leave this.

Eelco Hillenius

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to