From 7682f657a436806478c256f4e659065ae93fc6f5 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sun, 10 Jun 2012 21:46:32 +0200 Subject: [PATCH] don't do anything with webassets if the setting is set to false (default) --- pelican/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/settings.py b/pelican/settings.py index 9dcba369..5769f1f4 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -152,7 +152,7 @@ def configure_settings(settings, default_settings=None, filename=None): "http://docs.notmyidea.org/alexis/pelican/settings.html#timezone " "for more information") - if 'WEBASSETS' in settings: + if 'WEBASSETS' in settings and settings['WEBASSETS'] is not False: try: from webassets.ext.jinja2 import AssetsExtension settings['JINJA_EXTENSIONS'].append(AssetsExtension)