{% load static i18n statici18n conjunto %}
{#This is a generic html file for your application. You can extend it, or copy it and sort out the good parts ;-)#}
{# TODO: make it internationalizable #}
{% endblock %}
{% get_current_language as LANGUAGE_CODE %}
{% conjunto_js_scripts %}
{# NEVER, EVER use htmx directly in the script tag. #}
{# Only load external js files using #}
{# because HTMX itelf is loaded with defer, and will get executed AFTER scripts in the page #}
{% block scripts %}{% endblock scripts %}
{% block modal %}
{# modal HTMX target. Override if needed #}
{# include one hidden toast as template for Js cloning #}
{% include 'conjunto/toast.html' %}
{% for message in messages %}
{# render toasts for pending Django messages, show them immediately #}
{% include 'conjunto/toast.html' with message=message %}
{% endfor %}