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

@ -32,7 +32,6 @@
</head> </head>
<body class="bg-gray-200"> {% block body %}{% endblock %} <body class="bg-gray-200"> {% block body %}{% endblock %}
{% block javascripts %} {% block javascripts %}
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script> <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<script> <script>
@ -55,5 +54,7 @@ Scrollbar.init(document.querySelector('#sidenav-scrollbar'), options);
{{ importmap('app') }} {{ importmap('app') }}
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}
{% block page_js %}{% endblock %}
</body> </body>
</html> </html>