# HG changeset patch # User Ludovic Chabant # Date 1408477680 25200 # Node ID 8c15fc45d7122c791de4b97b5e555ee6ec9552c3 # Parent 4bd840ae75cd3eb3e0b7d2fa9fc84d113f88756a Make sure `.html` is part of auto-formats. diff -r 4bd840ae75cd -r 8c15fc45d712 piecrust/app.py --- a/piecrust/app.py Tue Aug 19 12:46:55 2014 -0700 +++ b/piecrust/app.py Tue Aug 19 12:48:00 2014 -0700 @@ -24,7 +24,7 @@ logger = logging.getLogger(__name__) -CACHE_VERSION = 10 +CACHE_VERSION = 11 class VariantNotFoundError(Exception): @@ -132,6 +132,9 @@ # Cache auto-format regexes. if not isinstance(sitec['auto_formats'], dict): raise ConfigurationError("The 'site/auto_formats' setting must be a dictionary.") + html_auto_format = sitec['auto_formats'] + if not html_auto_format: + sitec['auto_formats']['html'] = sitec['default_format'] cachec['auto_formats_re'] = r"\.(%s)$" % ( '|'.join( [re.escape(i) for i in list(sitec['auto_formats'].keys())]))