{% macro show_node(node) %}
{% for key, value in node.__dict__.items() %}
<span>{{key}}: </span>
{% if value is mapping %} <-- not sure what to do here
{{ show_node(value) }}
{%else%}
<span>Value: {{value}}</span>
{% endif %}
{% endfor %}
{% endmacro %}