diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-01 19:04:07 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-01 19:04:07 -0400 |
| commit | 9d064985eb66f36f10d1fc79f553c51a776be08b (patch) | |
| tree | 63b854e4972ee4254bd093fb5087b6f2d7599d7f /app/node_modules/okview/index.js | |
| parent | c5dddaad2893a5548aefbf2cc87265b73f557aac (diff) | |
Switch to Liquid templates
Diffstat (limited to 'app/node_modules/okview/index.js')
| -rw-r--r-- | app/node_modules/okview/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/node_modules/okview/index.js b/app/node_modules/okview/index.js index 341ebdd..a049901 100644 --- a/app/node_modules/okview/index.js +++ b/app/node_modules/okview/index.js @@ -34,7 +34,9 @@ OKView.prototype.middleware = function() { }; OKView.prototype.render = function(req, res, data) { - return res.send(this._template.render(data)); + this._template.render(data).then(function(html) { + res.send(html); + }, errorHandler(req, res, data)); }; /** |
