Ignore autoescape, breaks pelican
This commit is contained in:
parent
049f4152cc
commit
967d390ce7
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ from jinja2 import Environment, ChoiceLoader, FileSystemLoader
|
||||||
def execjinja2(instance):
|
def execjinja2(instance):
|
||||||
if type(instance) in (contents.Article, contents.Page):
|
if type(instance) in (contents.Article, contents.Page):
|
||||||
base_path = os.path.dirname(os.path.abspath(__file__))
|
base_path = os.path.dirname(os.path.abspath(__file__))
|
||||||
jinja2_env = Environment(
|
jinja2_env = Environment( # nosec
|
||||||
loader=ChoiceLoader([
|
loader=ChoiceLoader([
|
||||||
FileSystemLoader(
|
FileSystemLoader(
|
||||||
os.path.join(base_path, instance.settings['THEME'], 'templates')
|
os.path.join(base_path, instance.settings['THEME'], 'templates')
|
||||||
|
|
Reference in a new issue