Another thought.  What if we used ""->" instead of \"->" within a string
definition for the escaping behavior?  That's still a pretty simple rule
and follows the interpretation rules of some programming languages.  I
think any instance of "" within a string definition in the current
Velocity would give a syntax error, so there wouldn't be a problem with
backwards compatibility.  Can someone confirm that?

That would yield:
#set($bar="thingy") 
#set($foo="This $bar is ""fine""")
$foo
This thingy is "fine"

#set($bar="thingy")
#set($foo='This $bar is ''fine''')
$foo
This $bar is 'fine'

Barbara Baughman


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to