From 11e77728ede9027eea8d95fbbbff1f0dec588bbb Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Thu, 23 Jun 2016 09:32:37 +0530 Subject: [PATCH] Fix UnboundLocalError when building jinja site 06b18f6cd8a5adb06a90e60f04e07f92f620a18a fixed a bug with messed up names, but missed out one spot. --- nikola/plugins/template/jinja.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nikola/plugins/template/jinja.py b/nikola/plugins/template/jinja.py index 1f6a11cb39..ac21bc1dd3 100644 --- a/nikola/plugins/template/jinja.py +++ b/nikola/plugins/template/jinja.py @@ -97,7 +97,7 @@ def render_template(self, template_name, output_name, context): makedirs(os.path.dirname(output_name)) with io.open(output_name, 'w', encoding='utf-8') as output: output.write(data) - return output + return data def render_template_to_string(self, template, context): """Render template to a string using context."""