merge
Syntax
$params := merge $default_params $user_params
An example merging two maps.
{{ $default_params := dict "color" "blue" "width" "50%" "height" "25%" }}
{{ $user_params := dict "color" "red" "extra" (dict "duration" 2) }}
{{ $params := merge $default_params $user_params }}
Resulting $params:
"color": "red"
"extra":
"duration": 2
"height": "25%"
"icon": "mail"
"width": "50%"