Dear Dr. Nathan,
I am very sorry to come up with a new question and have to bother you
again.
I find the method 'Velocity.getTemplate()' costs much time, especially when
the template file is very large and complex. To avoid such long time cost, I
have to store all compiled template objects in memory, e.g. using a HashMap.
And when the source template files are modified, I have to do more to let the
cached templates to be reloaded.
I wonder if there is easier method to implement my idea. Can Velocity store
and reload compiled template in files? Or it contains a built-in template cache
manager? I need your suggestion.
Many thanks!
bluejoe
2008-11-24