{% macro heatmap(table_keys, context) %} {% set groupby = context["groupby"] %} {% set context_key = groupby + 's' %} {% for title in table_keys %} {% if context[context_key].get(title) %}