Try this:
#set($q = '')
#set($keywords = 'meta name=${q}keywords${q} content=${q}information,
xyz, something, $person.name, $person.address${q}/')
Claude
Le mercredi 18 octobre 2006 à 13:37 +0530, Manish a écrit :
How do I include double quotes in the #set variables? This is what I am
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 [EMAIL PROTECTED]
To: Velocity Users List velocity-user@jakarta.apache.org
Sent:
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 [EMAIL PROTECTED] wrote:
Never mind - I got this working!
#set($keywords =
your string matches Velocity semantics up to the (,
and that is why the parser has trouble witch what comes
afterwards.
Just replace the initial $ to soothe the barking parser:
#set( $D = '$' )
...
${D}{loginGenerator.generateLogin(quot;Johnquot;,quot;Smithquot;)}
...
This $D form is what has
--- Oryginalna wiadomość ---
Od: [EMAIL PROTECTED]
Do: Velocity Users List velocity-user@jakarta.apache.org
Wysłano: 2006-10-11 13:35:31
Temat: Re: simple question
your string matches Velocity semantics up to the (,
and that is why the parser has trouble witch what comes
afterwards.
Just
Users List velocity-user@jakarta.apache.org
Wysłano: 2006-10-11 13:35:31
Temat: Re: simple question
your string matches Velocity semantics up to the (,
and that is why the parser has trouble witch what comes
afterwards.
Just replace the initial $ to soothe the barking parser:
#set( $D
= )
#set( $string= )
#foreach( $item in $list )
#set( $string=$string$sep$item )
#set( $sep = , )
#end
Arkadiusz Ryćkowski wrote:
--- Oryginalna wiadomość ---
Od: [EMAIL PROTECTED]
Do: Velocity Users List velocity-user@jakarta.apache.org
Wysłano: 2006-10-11 13:35:31
Temat: Re: simple question