From 812481e4ae807f79e362d9dcbeecca6a4850a14c Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Mon, 14 Nov 2016 14:18:12 +0100 Subject: ... Templating: Fix POST to actually have objects Templating without the API objects.... --- templating/templating.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templating/templating.py') diff --git a/templating/templating.py b/templating/templating.py index d4cb7f8..a01ff5d 100755 --- a/templating/templating.py +++ b/templating/templating.py @@ -64,7 +64,7 @@ class MyHandler(http.server.BaseHTTPRequestHandler): length = 0 content = self.rfile.read(int(length)).decode('UTF-8') template = Template(content) - self.body = template.render(options=self.options).encode('UTF-8') + self.body = template.render(objects=objects, options=self.options).encode('UTF-8') self.send_response(200) self.send_header('Cache-Control','max-age=30, s-maxage=5') except Exception as err: -- cgit v1.2.3