# HG changeset patch # User Ludovic Chabant # Date 1420412320 28800 # Node ID 27d623a241c6402655f128543381485e94757fe4 # Parent fff195335d0a2918c12076d8670b90d1cb6ada00 render: Don't always use a `.html` extension for layouts. The rendering code now only looks for the extensions explicitely specified by the template engine. To compensate, the Jinja engine specifies `.html` as its last supported extension. diff -r fff195335d0a -r 27d623a241c6 piecrust/rendering.py --- a/piecrust/rendering.py Sun Jan 04 14:57:37 2015 -0800 +++ b/piecrust/rendering.py Sun Jan 04 14:58:40 2015 -0800 @@ -199,7 +199,6 @@ full_names = [] for name in names: if '.' not in name: - full_names.append(name + '.html') for ext in default_exts: full_names.append(name + ext) else: diff -r fff195335d0a -r 27d623a241c6 piecrust/templating/jinjaengine.py --- a/piecrust/templating/jinjaengine.py Sun Jan 04 14:57:37 2015 -0800 +++ b/piecrust/templating/jinjaengine.py Sun Jan 04 14:58:40 2015 -0800 @@ -27,7 +27,7 @@ class JinjaTemplateEngine(TemplateEngine): # Name `twig` is for backwards compatibility with PieCrust 1.x. ENGINE_NAMES = ['jinja', 'jinja2', 'twig'] - EXTENSIONS = ['jinja', 'jinja2', 'twig'] + EXTENSIONS = ['jinja', 'jinja2', 'twig', 'html'] def __init__(self): self.env = None