aboutsummaryrefslogtreecommitdiff
path: root/template.py
diff options
context:
space:
mode:
Diffstat (limited to 'template.py')
-rwxr-xr-xtemplate.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/template.py b/template.py
index 86516bb6..aab6fddd 100755
--- a/template.py
+++ b/template.py
@@ -23,7 +23,12 @@ env.install_gettext_translations(tr, newstyle=True)
23 23
24tmpl = env.get_template(in_file) 24tmpl = env.get_template(in_file)
25 25
26def url(x):
27 # TODO: look at the app root environment variable
28 # TODO: check if file exists
29 return x
30
26import codecs 31import codecs
27f = codecs.open(out_file, "w", "utf-8") 32f = codecs.open(out_file, "w", "utf-8")
28f.write(tmpl.render()) 33f.write(tmpl.render(lang=locale, url=url))
29f.close() 34f.close()