mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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.
|
templates ready to use with Jinja2.
|
||||||
"""
|
"""
|
||||||
path = os.path.expanduser(os.path.join(self.theme, 'templates'))
|
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 = {}
|
templates = {}
|
||||||
for template in _TEMPLATES:
|
for template in _TEMPLATES:
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue