{% comment %} Resolves a Django messages tag (success / error / warning / info) to the right .callout--* variant so templates don't hand-roll the colour map. Usage: {% for message in messages %} {% include "components/callout.html" with tags=message.tags body=message %} {% endfor %} Args: tags — message.tags (str). Recognised: success, error, warning, info, debug. body — the message body (rendered as-is, HTML-escaped by Django). {% endcomment %}{% spaceless %}
{{ body }}
{% endspaceless %}