velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
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

"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 [] 
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 <> 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:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message