moved js loading to .layout

This commit is contained in:
0ceanSlim 2024-02-05 10:50:20 -05:00
parent e1731347bd
commit 2dd0f8caa4
2 changed files with 4 additions and 3 deletions

View File

@ -10,4 +10,7 @@
<body class="content-center justify-center p-2 m-2 font-mono text-white bg-slate-800"> <body class="content-center justify-center p-2 m-2 font-mono text-white bg-slate-800">
{% block body %} {% endblock %} {% block body %} {% endblock %}
</body> </body>
{% for file in js_files %}
<script src="{{ url_for('static', filename='js/' + file) }}"></script>
{% endfor %}
</html> </html>

View File

@ -67,6 +67,4 @@
</a> </a>
</div> </div>
</div> </div>
{% for file in js_files %} {% endblock %}
<script src="{{ url_for('static', filename='js/' + file) }}"></script>
{% endfor %} {% endblock %}