{# Accordion / collapsible sections — DaisyUI collapse with optional lazy-load #} {# Parameters: sections (list of {id: str, title: str, content: str|None, endpoint: str|None}) #} {# If endpoint is provided, content lazy-loads on first open via HTMX #} {% for section in sections %}
{% if section.endpoint %} {# Lazy-loaded: fetch content on first open #}
{{ section.title }}
{% else %} {# Static content #}
{{ section.title }}
{{ section.content | safe }}
{% endif %}
{% endfor %}