don't do anything with webassets if the setting is set to false (default)

This commit is contained in:
Alexis Metaireau 2012-06-10 21:46:32 +02:00
commit 7682f657a4

View file

@ -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)