velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: Simple question regarding including double quotes in #set
Date Wed, 18 Oct 2006 14:45:17 GMT
If you switch to use 1.5-beta, then you can escape the double quotes
by doubling them:

#set($keywords = "<meta name=""keywords"" content=""information, xyz, something,
$person.name, $person.address""/>")

On 10/18/06, Manish <prolist@gmx.net> wrote:
> Never mind - I got this working!
>
>  #set($keywords = $render.eval('<meta name="keywords" content="information, xyz,
> something,  $person.name, $person.address"/>'))
>
> - Manish
>
>
> ----- Original Message -----
> From: "Manish" <prolist@gmx.net>
> To: "Velocity Users List" <velocity-user@jakarta.apache.org>
> Sent: Wednesday, October 18, 2006 1:37 PM
> Subject: Simple question regarding including double quotes in #set
>
>
> > How do I include double quotes in the #set variables? This is what I am trying
> > to get working, note that including this in single quotes won't render some
> > variable values that I want.
> >
> > #set($keywords = '<meta name="keywords" content="information, xyz, something,
> > $person.name, $person.address"/>')
> >
> > TIA,
> > - Manish
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>

---------------------------------------------------------------------
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