{# A legend (components/legend.py); the markup is the macro's (components/_legend.html). #} {% from "components/_legend.html" import legend %} {{- legend(items, label=c.label, shape=c.shape, id=c.id, css_class=c.css_class) -}}