Mercurial > piecrust2
diff piecrust/serving/server.py @ 520:bab91fcef741
bake/serve: Improve support for unicode, add slugification options.
* Add slugification options for taxonomies.
* Sort out some unicode support problems on OSX.
* Add tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 28 Jul 2015 18:34:21 -0700 |
parents | c7e8b4a5afe3 |
children | b22e69ff54f4 |
line wrap: on
line diff
--- a/piecrust/serving/server.py Tue Jul 28 18:29:41 2015 -0700 +++ b/piecrust/serving/server.py Tue Jul 28 18:34:21 2015 -0700 @@ -345,7 +345,7 @@ force_render=True) if taxonomy_info is not None: _, tax_terms = taxonomy_info - render_ctx.setTaxonomyFilter(tax_terms) + render_ctx.setTaxonomyFilter(tax_terms, needs_slugifier=True) # See if this page is known to use sources. If that's the case, # just don't use cached rendered segments for that page (but still