velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Rettig <mike.ret...@gmail.com>
Subject Re: loading template from memory
Date Fri, 06 Aug 2004 19:41:39 GMT
Use the evaluate method on the engine using a reader for your in
memory String. Then specify a log tag. I use this all the time for
unit testing velocity macros.

http://jakarta.apache.org/velocity/api/org/apache/velocity/app/VelocityEngine.html#evaluate(org.apache.velocity.context.Context,%20java.io.Writer,%20java.lang.String,%20java.io.Reader)

Mike

On Fri, 6 Aug 2004 12:29:11 -0700, troy starks <troy@typhoonstudios.com> wrote:
> I need to load a template from memory. I have noticed older threads about this topic.
From what I have read, I don't believe I can do this currently. I am wondered if there have
been any updates.
> 
> Any solution that could be used as a work around would be appreciated.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message