Commits

David Chambers committed 8f44281

Simplified syntax of the `JS` setting.

Comments (0)

Files changed (1)

             context['stylesheets'].append(stylesheet)
 
     # scripts
-    js_path, js = getattr(mango.settings, 'JS', (None, []))
-    context['scripts'] = [js_path + filename for filename in js]
+    try:
+        JS
+    except NameError:
+        context['scripts'] = []
+    else:
+        context['scripts'] = [JS[0] + filename for filename in JS[1:]]
 
     context['now'] = datetime.datetime.now()