You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Davide Mora <d_...@yahoo.com> on 2002/01/09 17:23:02 UTC
template from a string
Hi all!
I need to use a string as template, but i've not found
a way for get a Template from a generic Reader. Any
idea except write a temporary file and use it as
template?
Thanks,
Davide
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: template from a string
Posted by Thomas �hlen <th...@obidobi.net>.
The evaluate method takes a string
parser.evaluate( context, writer, "template name", template);
where template is a String.
Thomas
----- Original Message -----
From: "Davide Mora" <d_...@yahoo.com>
To: <ve...@jakarta.apache.org>
Sent: Wednesday, January 09, 2002 5:23 PM
Subject: template from a string
>
> Hi all!
>
> I need to use a string as template, but i've not found
> a way for get a Template from a generic Reader. Any
> idea except write a temporary file and use it as
> template?
>
> Thanks,
> Davide
>
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: template from a string
Posted by Anthony Eden <ae...@signaturedomains.com>.
Well there is Velocity.evaluate(Context context, Writer writer, String
logTag, Reader reader) or the same but with a String as the last argument.
These are both from Velocity 1.1 but I assume they are still there in the
current release.
Sincerely,
Anthony Eden
> -----Original Message-----
> From: Davide Mora [mailto:d_mora@yahoo.com]
> Sent: Wednesday, January 09, 2002 11:23 AM
> To: velocity-user@jakarta.apache.org
> Subject: template from a string
>
>
>
> Hi all!
>
> I need to use a string as template, but i've not found
> a way for get a Template from a generic Reader. Any
> idea except write a temporary file and use it as
> template?
>
> Thanks,
> Davide
>
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>