velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caleb Jones" <>
Subject Caching for VelocityEngine's evaluate(VelocityContext, Writer, String, String) method?
Date Mon, 05 Jan 2009 22:16:39 GMT
This didn't seem to make it when I sent it before subscribing, so I'm trying
again (sorry for any duplication):

I, for better or worse, need to load my velocity templates as Strings.
Thus, in order to parse them, I am using VelocityEngine's
evaluate(VelocityContext, Writer, String, String) method.  As far as I can
tell, this evaluate() method does not do AST caching, no?
I have three questions:
  1. Does the evaluate() method do AST caching?
  2. If not, is there a way to load a velocity template as a string and have
the velocity engine do AST caching?
  3. If not, how do I request this feature?  It seems like doing AST caching
for template strings passed into evaluate() would be fairly straight
forward.  Perhaps have this as a config option (ie:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message