Re: Simple question regarding including double quotes in #set

2006-10-18 Thread Claude Brisson
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

Re: Simple question regarding including double quotes in #set

2006-10-18 Thread Manish
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:

Re: Simple question regarding including double quotes in #set

2006-10-18 Thread Nathan Bubna
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 =

Re: simple question

2006-10-11 Thread apache
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

Re: simple question 2

2006-10-11 Thread Arkadiusz Ry�kowski
--- 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

Re: simple question 2

2006-10-11 Thread apache
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

Re: simple question 2

2006-10-11 Thread Will Glass-Husain
= ) #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