{# Embeddable Card Component Base card layout with overridable blocks. Use with {% embed %}. Blocks: - header: Card header content (optional) - body: Main card content (required) - footer: Card footer content (optional) Args (via context): - css_class: Additional CSS classes - href: Optional link URL (makes card clickable) - show_border: Show gradient border (default: true) Example: {% embed 'partials/_embeds/card.html' %} {% block header %}

My Title

{% end %} {% block body %}

Custom card content here.

{% end %} {% block footer %} Learn more → {% end %} {% end %} Example with context: {% with css_class='featured-card', href='/feature' %} {% embed 'partials/_embeds/card.html' %} {% block body %}

Clickable card!

{% end %} {% end %} {% end %} #} {% let card_class = css_class ?? '' %} {% let card_href = href ?? none %} {% let card_border = show_border ?? true %} {% if card_href %} {% block header %}{% end %}
{% block body %}{% end %}
{% block footer %}{% end %}
{% else %}
{% block header %}{% end %}
{% block body %}{% end %}
{% block footer %}{% end %}
{% end %}