diff --git a/index.js b/index.js index 0693fde..6729a8f 100644 --- a/index.js +++ b/index.js @@ -61,6 +61,7 @@ module.exports = function(){ options = options || {}; options.body = body; + if (options.data) options.data['body'] = body; // hack to work with flatiron / plates // calculate the layout vars var ext = extname(name) || '.'+(res.app.get('view engine') || 'ejs');