mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Mako: configure included templates like the main one.
This commit is contained in:
parent
bf16836598
commit
5c8c38be5d
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ def abort(message):
|
||||||
|
|
||||||
def render(filename, **context):
|
def render(filename, **context):
|
||||||
try:
|
try:
|
||||||
lookup = TemplateLookup(directories=[BASE])
|
lookup = TemplateLookup(directories=[BASE],
|
||||||
|
input_encoding="utf8",
|
||||||
|
strict_undefined=True)
|
||||||
template = Template(open(filename, "rb").read(),
|
template = Template(open(filename, "rb").read(),
|
||||||
filename=filename,
|
filename=filename,
|
||||||
input_encoding="utf8",
|
input_encoding="utf8",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue