bogart-handlebars
Advanced tools
Comparing version 0.10.5 to 0.10.6
@@ -52,2 +52,4 @@ var _ = require('underscore'); | ||
return function (view, locals, opts) { | ||
opts = opts || {}; | ||
if (!_.isFunction(view)) { | ||
@@ -58,12 +60,12 @@ throw new Error('respond(view, locals, opts) expected view to be a function, '+typeof(view)); | ||
// | ||
var body = view(locals); | ||
return { | ||
return _.extend({ | ||
status: 200, | ||
body: body, | ||
'content-type': 'text/html', | ||
headers: { | ||
"content-length": Buffer.byteLength(body) | ||
} | ||
}; | ||
}, opts); | ||
}; | ||
@@ -70,0 +72,0 @@ }); |
{ | ||
"name": "bogart-handlebars", | ||
"version": "0.10.5", | ||
"version": "0.10.6", | ||
"description": "Handlebars tools for Bogart", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5151
65