Merge "Add jinja2 autoescape=True"
This commit is contained in:
commit
d62a65a11c
@ -50,7 +50,9 @@ isotime = timeutils.isotime
|
|||||||
|
|
||||||
|
|
||||||
def build_jinja_environment():
|
def build_jinja_environment():
|
||||||
env = jinja2.Environment(loader=jinja2.ChoiceLoader([
|
env = jinja2.Environment(
|
||||||
|
autoescape=True,
|
||||||
|
loader=jinja2.ChoiceLoader([
|
||||||
jinja2.FileSystemLoader(CONF.template_path),
|
jinja2.FileSystemLoader(CONF.template_path),
|
||||||
jinja2.PackageLoader("trove", "templates")
|
jinja2.PackageLoader("trove", "templates")
|
||||||
]))
|
]))
|
||||||
|
Loading…
Reference in New Issue
Block a user