velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <shintamann...@wellsfargo.com>
Subject RE: Escaping characters
Date Tue, 09 Oct 2007 16:06:16 GMT
If you need to print the dollar sign, using $$ works too.
<td> $$number.format('integer',$myMoneyAmount)</td> 


Shinta Manning
Web Developer
Wells Fargo Financial
800 Walnut Street
Des Moines, IA 50309
MAC 4030-030
(515)557-8880

"This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."


-----Original Message-----
From: Nathan Bubna [mailto:nbubna@gmail.com] 
Sent: Tuesday, October 09, 2007 10:33 AM
To: Velocity Users List
Subject: Re: Escaping characters

#set( $D = '$' )
#set( $hello = 'world' )
${D}{out:hello ${hello} }

On 10/9/07, Luis Villa <lvillap@gmail.com> wrote:
> Hello all,
>
> I've seen in the documentation that, in order to escape references, I 
> have to add a \, but it only works with $variable references. What 
> should I do if the output I want id ${label(variable)} where variable 
> is a reference in velocity and the ${ must be in the output.
>
> I mean, something like this
>
> #set ($hello = "world")
> \${out:hello ${hello} }
>
> and the output shoulb something like this:
>
> ${out: hello world }
>
> I hope I explained myself (my english is not very good)
>
> Thanks all in advance ! :)
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message