{% macro render_card_content(name, data) -%} {{ name }} {% for pair in data | dictsort %} {% if pair[1] is iterable and pair[1] is not string %} {{ render_list_content(pair[0], pair[1]) }} {% else %} {{ pair[0] }} {{ pair[1] }} {% endif %} {% endfor %} {%- endmacro %} {% macro render_list_content(key, list) -%} {{ key }} {{ list | length }} expand_more {{ list }} {%- endmacro %} {% macro render_plot_card(name, data) -%} {{ name }} {% for pair in data | dictsort %} {{ pair[0] }} {{ pair[1] }} {% endfor %} {%- endmacro %}