{% load lb_tags %} {% load static %} {% if not noGlobalCSS %} {% lb_css_path as css_path %} {% endif %} {% comment %} CSRF helper — used by reactive write actions (c-lbr.post/delete) and the theme endpoint. Defined once whenever the reactive bundle loads (datastar prop OR a body component pushed datastar.js onto the stack) or a theme endpoint is set. {% endcomment %} {% lb_stack_has "components" "labb/js/vendor/datastar.js" as lbr_bundle_active %} {% if datastar or lbr_bundle_active or setThemeEndpoint %} {% endif %} {% if setThemeEndpoint %} {{ setThemeEndpoint|json_script:"labb-set-theme-endpoint" }} {% endif %} {% if datastar %} {% lb_push_stack name="components" path="labb/js/lb-schema.js" mode="src" %} {% lb_push_stack name="components" path="labb/js/vendor/datastar.js" mode="module" %} {% endif %} {% lb_load_stack name="components" %} {{ slot }}