velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: Escaping characters
Date Tue, 09 Oct 2007 15:32:44 GMT
#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


Mime
View raw message