{% macro key_image(ref) %} {% if ref.key_image %} {{ ref.key_image.alt}} {% endif %} {% endmacro %} {% macro table(t, headers=[]) %} {% for h in headers %}{% if h %}{% endif %}{% endfor %} {% for key in t %} {{ _list_to_cols(t[key], headers) }} {% endfor %}
{{ h }}
{{ key }}
{% endmacro %} {% macro _list_to_cols(l, headers) %} {% if l is mapping %} {% for key in l if key in headers%} {{ _list_to_cols(l[key], headers) }} {% endfor %} {% elif l %} {{ l }} {% endif %} {% endmacro %}