mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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):
|
||||
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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue