#set( $quote = '"' )
#set( $x = " Title: ${quote}Time${quote} ")
...should do the trick. Of course you don't need the curly brackets if there are spaces around where you need to expand $quote but just always use them so you don't have think about this special case.
Yes?
At 5:28 PM -0800 1/20/03, Akshay Kapur wrote:
In a .vm template, I want to assign a string with double quotes in it to a velocity variable. How do I do this? (Conceptually similar to what I am doing below but obviously, the one below doesn't work)
#set( $x = " Title: "Time" " )
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
