From d66ef2928b913b6eccb0ab05c95996dbea922773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 1 May 2016 14:32:19 +0200 Subject: Overhaul js handling --- templates/layout.jinja | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'templates/layout.jinja') 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 %} @@ -69,10 +70,12 @@ {% if not g.is_mobile %} {% block js %} - - + {{ scripts("jquery", "kosten") }} {% endblock %} - {% if JSFunction %} {% endif %} + {% if additionalJS %}{{ scripts(additionalJS) }}{% endif %} + {% if JSFunction %} + + {% endif %} {% endif %} -- cgit v1.2.3