extra_body_script module support, closes #1187

This commit is contained in:
Simon Willison 2021-01-13 18:14:33 -08:00
commit c38c42948c
5 changed files with 31 additions and 9 deletions

View file

@ -62,7 +62,7 @@
{% include "_close_open_menus.html" %}
{% for body_script in body_scripts %}
<script>{{ body_script }}</script>
<script{% if body_script.module %} type="module"{% endif %}>{{ body_script.script }}</script>
{% endfor %}
{% if select_templates %}<!-- Templates considered: {{ select_templates|join(", ") }} -->{% endif %}