{% macro render_node(node, path=[]) %} {% set full_path = path + [node.label] %}
{% if node.children %} {% else %} {% endif %} {% if node.has_records %} {% if "plot" in node.record_kinds %} {% endif %} {% if "table" in node.record_kinds %} {% endif %} {{ node.label }} {% else %} {{ node.label }} {% endif %} {% if node.children %} {{ node.record_count() }} {% endif %}
{% if node.children %}
{% for child in node.children %} {{ render_node(child, full_path) }} {% endfor %}
{% endif %}
{% endmacro %}