forked from github/pelican
Use JINJA_EXTENSIONS setting if available when creating the Environment object.
This commit is contained in:
parent
7873370583
commit
3c0649d89f
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class Generator(object):
|
|||
templates ready to use with Jinja2.
|
||||
"""
|
||||
path = os.path.expanduser(os.path.join(self.theme, 'templates'))
|
||||
env = Environment(loader=FileSystemLoader(path))
|
||||
env = Environment(loader=FileSystemLoader(path),extensions=self.settings.get('JINJA_EXTENSIONS', []))
|
||||
templates = {}
|
||||
for template in _TEMPLATES:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue