You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Richard Cowin <ri...@hansard.com> on 2002/11/08 15:07:05 UTC
Template object from something other than a file
Can a Template object be instantiated from a String containing VTL?
I'd like to store VTL as a varchar in a database rather than as a file in a filesystem.
Cheers.
Re: Template object from something other than a file
Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>