dictionary_add_dictionary

Overview

Adds an empty dictionary in an existing dictionary at key. Note that this will overwrite any existing value at that key.

Parameters

  • dictionarydictionary – The dictionary to manipulate
  • keystring – The key at which to add an empty dictionary

Example

{% dictionary_add_dictionary mydict "new" %}  # {'a': 1} => {'a': 1, 'new': {}}