{# Renders the provided `obj` dict as interactive HTML #}
{# Content of explorer_header() should be added to the header of the page #}
{# Content of explorer_content(div_id, obj) represents the `obj` dict as interactive HTML content #}
{# Content of explorer_footer(div_ids) should be added to the page such that it is loaded after explorer_content/draw_node #}
{% macro collapseable(v) %}{% if v is mapping or (v is iterable and v is not string) %}collapseable{% else %}not_collapseable{% endif %}{% endmacro %}
{% macro render_string_value(s) %}
{{ s | replace('\n', '
') | safe }}
{% endmacro %}
{% macro draw_value(v) %}
{% if v is mapping %}
{{ draw_node(v) }}
{% elif v is string %}
{{ render_string_value(v) }}
{% elif v is iterable %}
{{ draw_list(v) }}
{% else %}
{{ v }}
{% endif %}
{% endmacro %}
{% macro draw_node(node) %}