{# Pieces the email HTML parts share; import "with context" so c is there. #} {% macro badge(tone, text) -%} {{ text }} {%- endmacro %} {% macro button(href, text) -%}
{{ text }}
{%- endmacro %} {% macro fact(label, value) -%} {{ label }} {{ caller() if caller else value }} {%- endmacro %} {% macro section(title, href="", more="") -%} {% if href %}{% endif %}
{{ title }}{{ more or "Open in Steward" }}
{%- endmacro %} {% macro rows() -%} {{ caller() }}
{%- endmacro %} {% macro row(cells, last_right=True) -%} {% for cell in cells %} {{ cell }} {% endfor %} {%- endmacro %}