I have a map in a velocity template that is dynamically modified. A simplified example to illustrate the point is below.
#set($testMap = {})
## this stuff isn't static so I can't just create
## the map as key-value pairs in the declaration
$testMap.put("a", "A")
$testMap.put("b", "B")
$testMap
The above generates
$testMap.put("a", "A") $testMap.put("b", "B") {a=A, b=B}
I don't want the "put" instructions to show in the template.