If I try:
{{velocity}}
#set($map = {'name':'marius'})
$map.put('myname','adam')
$map.name and $map.myname
{{/velocity}}
I get:
$map.put('myname','adam')
marius and adam
which is normal because the put method returns the previous value mapped
to the specified key, which is null in our case.
The penny drops. When debugging velocity script I tend to dab $values all over the place
and look for where they show up on the page. I hadn't considered this scenario.
Dumping the map does indeed show that the entries are in there.
That's fantastic - thanks for your assistance.
Cheers,
Adam