diff --git a/index.js b/index.js index 227e42705..7a3189fdf 100644 --- a/index.js +++ b/index.js @@ -94,9 +94,9 @@ var _engine = { }); }); }, - express: function() { + express: function(renderingOptions) { return (filePath, options, callback) => { - this.renderFile(filePath, options) + this.renderFile(filePath, options, renderingOptions) .then(html => callback(null, html)) .catch(e => callback(e)); };