{% if edit_mode %}{% endif %}
{% for script in widget_scripts %} {% endfor %} {# Last on purpose: the editor overlay wraps behaviour the scripts above establish (it suppresses their event handling and drives the same reactive `state`), so it has to run once they exist. Only emitted for KApp(edit_mode=True) -- a normal app serves byte-identical HTML to before this feature existed. #} {% if edit_mode %}{% endif %}