{% with tables = jinja.get("tables", {}) %} {% if "bottom" in tables and "columns" in tables["bottom"] %} {% for col in tables["bottom"]["columns"] -%} {% endfor %} {% endif %} {% if "bottom" in tables and "columns" in tables["bottom"] and "data" in tables["bottom"] %} {% for row in tables["bottom"]["data"] -%} {% for col in tables["bottom"]["columns"] -%} {% endfor %} {% endfor %} {% endif %} {% if "bottom" in tables and "columns" in tables["bottom"] %} {% for col in tables["bottom"]["columns"] -%} {% endfor %} {% endif %}
{{ col.get("label", col["field"]) if isinstance(col, dict) else col }}
{{ row[col["field"] if isinstance(col, dict) else col] }}
{{ col.get("label", col["field"]) if isinstance(col, dict) else col }}
{% endwith %}