velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Reck <apa...@recks.org>
Subject Re: Template as *Stream* ?
Date Mon, 11 Apr 2005 16:56:40 GMT
The same answer given by Shinobu in the thread "variables in a variable (recursive)." applies
here:

Check out (View)RenderTool.  :)
     http://jakarta.apache.org/velocity/tools/javadoc/org/apache/velocity/tools/generic/RenderTool.html
     http://jakarta.apache.org/velocity/tools/view/ViewRenderTool.html

Best regards,
-- Shinobu

Best regards from me too,
:) Christoph Reck


Matthias Wessendorf wrote:
> Hi,
> 
> I am testing Velocity and I have some templates on file.
> That works fine.
> 
> However is there a possibility to use a *stream*
> something like a String ?
> 
> getTemplate("Hello $name! Welcome to Velocity!");
> 
> instead of getTemplate("hello.vm");
> 
> 
> thanks,
> Matthias
> 
> ---------------------------------------------------------------------
> 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