Brydon Cheyney
2002-07-24 16:36:38 UTC
hi,
according to the user guide, if the right hand side of a #set directive, is
a string literal, strings quoted by "..." are interpolated, while strings
quoted by '...' are not. this allows you to set variables such as
#set ( $foo = "$bar$baz" )
however, what this does /not/ allow you to do it seems is this
#set ($foo = "foo=\"$bar\"" )
which you would imagine would be valid code. after all, you can quote other
characters within the string literal, so why not double quotes?
or am i missing something? i'd search the archives on mail-archive, but it
appears the facility is broken.
cheers,
brydon
--
brydon cheyney
senior analyst programmer, 2fluid creative ltd
according to the user guide, if the right hand side of a #set directive, is
a string literal, strings quoted by "..." are interpolated, while strings
quoted by '...' are not. this allows you to set variables such as
#set ( $foo = "$bar$baz" )
however, what this does /not/ allow you to do it seems is this
#set ($foo = "foo=\"$bar\"" )
which you would imagine would be valid code. after all, you can quote other
characters within the string literal, so why not double quotes?
or am i missing something? i'd search the archives on mail-archive, but it
appears the facility is broken.
cheers,
brydon
--
brydon cheyney
senior analyst programmer, 2fluid creative ltd