{% load static i18n %} {% comment %} Couple the JS to the UI: when the template above is rendered (and thus the CONJUNTO_THEME_SWITCHER gate has already been passed), emit the toggle script too. This avoids "window.toggleTheme is not a function" when a downstream template overrides the ``app_scripts`` block without calling ``{{ block.super }}``. {% endcomment %}