Mako: configure included templates like the main one.

This commit is contained in:
Simon Sapin 2017-01-24 19:38:54 +01:00
parent bf16836598
commit 5c8c38be5d

View file

@ -49,7 +49,9 @@ def abort(message):
def render(filename, **context):
try:
lookup = TemplateLookup(directories=[BASE])
lookup = TemplateLookup(directories=[BASE],
input_encoding="utf8",
strict_undefined=True)
template = Template(open(filename, "rb").read(),
filename=filename,
input_encoding="utf8",