From 512095f5e9a8df07b34af470a042e3f4b0036f3e Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Fri, 6 Aug 2010 18:39:21 +0300 Subject: Aded load_js macro to templates for loading js scripts from static --- grumpy/templates/_util.html | 3 +++ grumpy/templates/dashboard.html | 4 ++-- grumpy/templates/layout.html | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 grumpy/templates/_util.html diff --git a/grumpy/templates/_util.html b/grumpy/templates/_util.html new file mode 100644 index 0000000..5e6ee0b --- /dev/null +++ b/grumpy/templates/_util.html @@ -0,0 +1,3 @@ +{% macro load_js(filename) -%} + +{% endmacro -%} diff --git a/grumpy/templates/dashboard.html b/grumpy/templates/dashboard.html index 59e05f9..49d539f 100644 --- a/grumpy/templates/dashboard.html +++ b/grumpy/templates/dashboard.html @@ -1,8 +1,8 @@ {% extends "layout.html" %} {% block title %}Your Dashboard{% endblock %} {% block script %} - - +{{ importer.load_js('jquery.min') }} +{{ importer.load_js('jquery.dataTables.min') }}