velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
Subject Re: Template object from something other than a file
Date Fri, 08 Nov 2002 14:27:02 GMT

On Friday, November 8, 2002, at 09:07 AM, Richard Cowin wrote:

> Can a Template object be instantiated from a String containing VTL?

Of course, but you might have to do some work depending on what you 
want to do.

The best way is to use the DataSourceResourceLoader, or something 
similar.

You can also use the evaluate() methods in Velocity / VelocityEngine if 
you don't care about the parse time.

geir

-- 
Geir Magnusson Jr                                                      
203-355-2219(w)
Adeptra, Inc.                                                           
        203-247-1713(m)
geirm@adeptra.com


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


Mime
View raw message