Skip to content

Tag: velocity

How to use String as Velocity Template?

What is the best way to create Velocity Template from a String? I’m aware of Velocity.evaluate method where I can pass String or StringReader, but I’m curios is there a better way to do it (e.g. any advantage of creating an instance of Template). Answer There is some overhead parsing template. You…