Jinja setting: trim blocks.

This commit is contained in:
Simon
2012-12-15 00:54:53 +01:00
parent 60e16f1a43
commit 4e23a2e8da

View File

@@ -71,7 +71,8 @@ class Writer():
self.logger.info("Theme path : %s", self.theme)
theme_relpath = os.path.relpath(os.path.join(self.theme, 'templates'),
os.path.dirname(__file__))
env = Environment(loader=PackageLoader('sigal', theme_relpath))
env = Environment(loader=PackageLoader('sigal', theme_relpath),
trim_blocks=True)
try:
self.template = env.get_template(INDEX_PAGE)