add page_js to be able to add javascript specific to a page
This commit is contained in:
parent
67c341c390
commit
e5bd7c4003
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user