diff options
Diffstat (limited to 'templates/js.jinja')
-rw-r--r-- | templates/js.jinja | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/templates/js.jinja b/templates/js.jinja deleted file mode 100644 index 531c9e1..0000000 --- a/templates/js.jinja +++ /dev/null @@ -1,25 +0,0 @@ -{% set js_lib = { - "kosten" : "js/kosten.js", - "highstock" : "js/lib/highstock-4.2.2.js", - "jquery" : "js/lib/jquery-1.11.2.min.js", - } -%} - -{% macro script(name) %} - {% if name in js_lib %} - <script type="text/javascript" src="{{ js_lib[name] | static_url }}"></script> - {% endif %} -{% endmacro %} - -{% macro scripts(names) %} - {% if names is not string %} - {% for name in names %} - {{ script(name) }} - {% endfor %} - {% else %} - {{ script(names) }} - {% for name in varargs %} - {{ script(name) }} - {% endfor %} - {% endif %} -{% endmacro %} |