diff piecrust/app.py @ 561:624559e72d3b

routes: Add better support for taxonomy slugification. * The `site/slugify_mode` can change slugification mode for all sources in one go. * Add support for replacing spaces with dashes. * Add tests.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 14 Aug 2015 22:46:06 -0700
parents 39175c48a4ae
children 6b6c5442c790
line wrap: on
line diff
--- a/piecrust/app.py	Fri Aug 14 22:44:25 2015 -0700
+++ b/piecrust/app.py	Fri Aug 14 22:46:06 2015 -0700
@@ -29,7 +29,7 @@
 logger = logging.getLogger(__name__)
 
 
-CACHE_VERSION = 21
+CACHE_VERSION = 22
 
 
 class VariantNotFoundError(Exception):
@@ -122,6 +122,7 @@
                     ('textile', 'textile')]),
                 'default_auto_format': 'md',
                 'pagination_suffix': '/%num%',
+                'slugify_mode': 'encode',
                 'plugins': None,
                 'themes_sources': [DEFAULT_THEME_SOURCE],
                 'cache_time': 28800,