added dynamic load javascript
This commit is contained in:
parent
aad0a5a051
commit
c2cba489d1
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue