Is it possible to set a Velocity reference to 'null' or 'undefined'?
The Velocity template language reference says
#set
- Establishes the value of a reference Format:
# [ { ] set [ } ] ( $ref = [ ", ' ]arg[ ", ' ] )
Usage:
$ref
- The LHS of the assignment must be a variable reference or a property reference.
arg
- The RHS of the assignment, arg is parsed if enclosed in double quotes, and not parsed if enclosed in single quotes. If the RHS evaluates to null, it is not assigned to the LHS. (emphasis mine)
I cannot find an equivalent #unset
macro.