1
Fork 0

Ignore autoescape, breaks pelican

This commit is contained in:
Jake Howard 2017-01-13 08:58:23 +00:00
parent 049f4152cc
commit 967d390ce7

View file

@ -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')