From 93a61f30824a779ef2d6e9da1adbe4f16c77b6be Mon Sep 17 00:00:00 2001 From: danlevan Date: Sun, 8 Jan 2017 01:02:18 -0500 Subject: [PATCH] Pass options to bracket compile --- lib/consolidate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/consolidate.js b/lib/consolidate.js index 8a06431..d3af406 100644 --- a/lib/consolidate.js +++ b/lib/consolidate.js @@ -1051,7 +1051,7 @@ exports.bracket.render = function (str, options, fn) { return promisify(fn, function (fn) { var engine = requires.bracket || (requires.bracket = require('bracket-template')); try { - var tmpl = cache(options) || cache(options, engine.default.compile(str)); + var tmpl = cache(options) || cache(options, engine.default.compile(str, options)); fn(null, tmpl(options)); } catch (err) { fn(err);