Mercurial > piecrust2
comparison 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 |
comparison
equal
deleted
inserted
replaced
560:64e696adb99e | 561:624559e72d3b |
---|---|
27 | 27 |
28 | 28 |
29 logger = logging.getLogger(__name__) | 29 logger = logging.getLogger(__name__) |
30 | 30 |
31 | 31 |
32 CACHE_VERSION = 21 | 32 CACHE_VERSION = 22 |
33 | 33 |
34 | 34 |
35 class VariantNotFoundError(Exception): | 35 class VariantNotFoundError(Exception): |
36 def __init__(self, variant_path, message=None): | 36 def __init__(self, variant_path, message=None): |
37 super(VariantNotFoundError, self).__init__( | 37 super(VariantNotFoundError, self).__init__( |
120 ('html', ''), | 120 ('html', ''), |
121 ('md', 'markdown'), | 121 ('md', 'markdown'), |
122 ('textile', 'textile')]), | 122 ('textile', 'textile')]), |
123 'default_auto_format': 'md', | 123 'default_auto_format': 'md', |
124 'pagination_suffix': '/%num%', | 124 'pagination_suffix': '/%num%', |
125 'slugify_mode': 'encode', | |
125 'plugins': None, | 126 'plugins': None, |
126 'themes_sources': [DEFAULT_THEME_SOURCE], | 127 'themes_sources': [DEFAULT_THEME_SOURCE], |
127 'cache_time': 28800, | 128 'cache_time': 28800, |
128 'enable_debug_info': True, | 129 'enable_debug_info': True, |
129 'show_debug_info': False, | 130 'show_debug_info': False, |