{% comment %} Card Component - Django Template Version of shadcn/ui Card Usage: {% include 'components/ui/card.html' with title='Card Title' content='Card content' %} Security: All content variables are sanitized to prevent XSS attacks. {% endcomment %} {% load safe_html %}
{% if title or header_content %}
{% if title %}

{{ title }}

{% endif %} {% if description %}

{{ description }}

{% endif %} {% if header_content %} {{ header_content|sanitize }} {% endif %}
{% endif %} {% if content or body_content %}
{% if content %} {{ content|sanitize }} {% endif %} {% if body_content %} {{ body_content|sanitize }} {% endif %}
{% endif %} {% if footer_content %}
{{ footer_content|sanitize }}
{% endif %}