Mercurial > piecrust2
changeset 288:078e64dba77d
jinja: Fix Twig compatibility for block trimming.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 05 Mar 2015 00:26:37 -0800 |
parents | 7081a5f88e10 |
children | 9b75b49a4084 |
files | piecrust/templating/jinjaengine.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/templating/jinjaengine.py Thu Mar 05 00:26:08 2015 -0800 +++ b/piecrust/templating/jinjaengine.py Thu Mar 05 00:26:37 2015 -0800 @@ -126,7 +126,7 @@ # Twig trims blocks. if twig_compatibility_mode is True: - self.trim_blocks = True + kwargs['trim_blocks'] = True # All good! Create the Environment. super(PieCrustEnvironment, self).__init__(*args, **kwargs)