added dynamic load javascript

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2024-12-16 18:23:15 +07:00
parent aad0a5a051
commit c2cba489d1

View File

@ -1,2 +1,5 @@
{% block js %}
{% for element in javascript }
<script {% if element.src %}src="{{ element.src }}"{% endif %} {% if element.type == "module" %}type="module"{% endif %}>{% element.innerText %}</script>
{% endfor %}
{% endblock %}