Mercurial > piecrust2
diff piecrust/templating/jinjaengine.py @ 184:27d623a241c6
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.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 04 Jan 2015 14:58:40 -0800 |
parents | 28444014ce7d |
children | 1163bd034dc5 |
line wrap: on
line diff
--- 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