{% macro set_value_macro(dct, key, value=1) -%} {% if dct.update({key: value}) %} {% endif %} {%- endmacro %}