velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luis Villa" <>
Subject Escaping characters
Date Tue, 09 Oct 2007 10:02:06 GMT
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 ! :)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message