forked from github/pelican
trim the blocks when generating templates.
This commit is contained in:
parent
c022f4d483
commit
587184c778
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue