add page_js to be able to add javascript specific to a page

This commit is contained in:
Ryan Prather 2024-12-31 23:07:18 +00:00
parent 67c341c390
commit e5bd7c4003

View File

@ -11,8 +11,8 @@
</title>
<!-- Simple CSS
<link
rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">-->
<link
rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">-->
<!-- Fonts and icons -->
<link
@ -32,7 +32,6 @@
</head>
<body class="bg-gray-200"> {% block body %}{% endblock %}
{% block javascripts %}
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<script>
@ -55,5 +54,7 @@ Scrollbar.init(document.querySelector('#sidenav-scrollbar'), options);
{{ importmap('app') }}
{% endblock %}
{% endblock %}
{% block page_js %}{% endblock %}
</body>
</html>