The user documentation sais:
#set( $monkey.Map = {"banana" : "good", "roast beef" : "bad"}) ## Map
But I get a parsing exception when I try:
------------------------------------------------------------------------
--------
##Set some values within the template
## Works fine
#set( $text = "this is some text" )
## Map - BROKEN
#set( $myLiteralMap = {"message" : "hello", "foo" : "bar"})
Here is some text:
$text
Here are some values:
#foreach( $key in $myLiteralMap.keySet() )
$key has a value of: $myLiteralMap.get($key)
#end
------------------------------------------------------------------------
--------
Is it possible to INITIALIZE a map from within a template? If so, how?
Thanks.