1
0
Fork 0
forked from github/pelican

trim the blocks when generating templates.

This commit is contained in:
Alexis Métaireau 2012-11-21 16:38:27 +01:00
commit 587184c778

View file

@ -47,6 +47,7 @@ class Generator(object):
simple_loader = FileSystemLoader(os.path.join(theme_path,
"themes", "simple", "templates"))
self.env = Environment(
trim_blocks=True,
loader=ChoiceLoader([
FileSystemLoader(self._templates_path),
simple_loader, # implicit inheritance