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