From 0a73e65d281d865a68ea5220314c7a771e7ddb79 Mon Sep 17 00:00:00 2001 From: Scott Santucci Date: Tue, 27 Sep 2016 00:55:11 -0400 Subject: [PATCH] Add strict* options to Express engine shortcut One way to close #9 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); };