How to add a map to another map in freemarker templete

I have two cards, and I want to add one to the other, as we use putAllin groovy or Java code. We can put key and value pairs in correspondence as follows:

<#assign key=value in mapname>

but I want to put the card in another card.

Is it possible?

Thanks in advance.

+4
source share
1 answer

That <#assign map1 = map1 + map2>. (Do not add too many of these cards, although this does not change existing cards, but creates a new object. Creating a new card is quick, but will be slightly slower to read as source cards, since it will look for keys in both.)

0
source

All Articles