Copied from the python Jinja2 issue: https://github.com/pallets/jinja/issues/557 > It would be great if the map filter would return an optional default value if the attribute is not defined.