summaryrefslogtreecommitdiff
path: root/templates/layout.jinja
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2016-05-01 14:32:19 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2016-05-01 14:32:19 +0200
commitd66ef2928b913b6eccb0ab05c95996dbea922773 (patch)
treecdc8d752274fdf1e0f2b28303fb4bbb1951ab9d2 /templates/layout.jinja
parent78b318d350e404d2fccf174242638bcf4aca2f57 (diff)
downloadkosten-d66ef2928b913b6eccb0ab05c95996dbea922773.tar.gz
kosten-d66ef2928b913b6eccb0ab05c95996dbea922773.tar.bz2
kosten-d66ef2928b913b6eccb0ab05c95996dbea922773.zip
Overhaul js handling
Diffstat (limited to '')
-rw-r--r--templates/layout.jinja9
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/layout.jinja b/templates/layout.jinja
index a79785f..e215c3c 100644
--- a/templates/layout.jinja
+++ b/templates/layout.jinja
@@ -1,3 +1,4 @@
+{% from 'js.jinja' import scripts %}
<!doctype html>
<html>
<head>
@@ -69,10 +70,12 @@
</div>
{% if not g.is_mobile %}
{% block js %}
- <script type="text/javascript" src="{{ "js/jquery-1.11.2.min.js" | static_url }}"></script>
- <script type="text/javascript" src="{{ "js/kosten.js" | static_url }}"></script>
+ {{ scripts("jquery", "kosten") }}
{% endblock %}
- {% if JSFunction %}<script type="text/javascript">{{ JSFunction }}()</script> {% endif %}
+ {% if additionalJS %}{{ scripts(additionalJS) }}{% endif %}
+ {% if JSFunction %}
+ <script type="text/javascript">{{ JSFunction }}()</script>
+ {% endif %}
{% endif %}
</body>
</html>