diff --git a/index.js b/index.js index e8a2aa6..0a15538 100644 --- a/index.js +++ b/index.js @@ -53,7 +53,7 @@ internals.marshal = function (request, next) { return next(null, source); break; case 'view': - return request.server.render(source.template, source.context, function (err, rendered) { + return request.render(source.template, source.context, source.options, function (err, rendered) { if (err) { throw err; @@ -123,4 +123,4 @@ exports.register = function (server, options, next) { exports.register.attributes = { name: Package.name, version: Package.version -}; \ No newline at end of file +};