The first time you try to set a complicated javascript function call or URL into a velocity variable, you’ll realize you run out of quotes quick.
Here are some helper vars:
#set ($Q = “‘”) ## That’s a ‘ inside of a pair of ”
#set ($QQ = ‘”‘) ##That’s a ” inside of a pair of ‘
#set ($EQ = “‘”) ## Escaped Single Quote
#set ($EQQ = ‘”‘) ## Escaped Double Quote
So then things like this are way easier:
#set ($someEXTMenuItemOrSomething = “${QQ}$someNavItemUrl{QQ}”)

