diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-11-14 14:18:12 +0100 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-11-14 14:18:12 +0100 |
commit | 812481e4ae807f79e362d9dcbeecca6a4850a14c (patch) | |
tree | 5abe82d8aedb0d55b9d9984520953b2e1caf13ab /templating/templating.py | |
parent | 752f4846f42ed0758c013820def30bca92f8a5d0 (diff) |
... Templating: Fix POST to actually have objects
Templating without the API objects....
Diffstat (limited to 'templating/templating.py')
-rwxr-xr-x | templating/templating.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |