]> oss.titaniummirror.com Git - webber.git/commitdiff
template_mako: apply cfg.input_encoding on templates as well
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Thu, 25 Jun 2009 21:46:02 +0000 (23:46 +0200)
committerHolger Schurig <hs4233@mail.mn-solutions.de>
Thu, 25 Jun 2009 21:46:02 +0000 (23:46 +0200)
This finally allows templates to contain Umlaut characters.

plugins/template_mako.py

index b8a4db69b81dad462b898f80973352de3d1c3ed6..4c397eb05e736a5474c1fc840a3d4f331079116a 100644 (file)
@@ -29,6 +29,7 @@ def get_template(file):
        else:
                lookup = TemplateLookup(
                        directories = (extra_dir, file.style_dir),
+                       input_encoding = file.input_encoding,
                        output_encoding = file.output_encoding,
                        encoding_errors='replace',
                        filesystem_checks = False)