Ondra Žižka created FREEMARKER-8:
------------------------------------

             Summary: Assigning to a hash
                 Key: FREEMARKER-8
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-8
             Project: Apache Freemarker
          Issue Type: New Feature
          Components: engine
    Affects Versions: 2.3.23
            Reporter: Ondra Žižka


It would be nice to assign to a map this way:

{code}
<#assign map["key"] = 1>
{code}

and also 
{code}
<#assign map["key"]++>
{code}

So far I think it's like this but can't get it work:
{code}
<#assign map += {classification.classification : 
map[classification.classification]!++}>
{code}

Thanks for considering.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to