Skip to content

Commit

Permalink
Merge pull request #273 from danlevan/options
Browse files Browse the repository at this point in the history
Pass options to bracket compile
  • Loading branch information
doowb committed Sep 18, 2017
2 parents b56b42a + 93a61f3 commit 0b8bee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/consolidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,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);
Expand Down

0 comments on commit 0b8bee4

Please sign in to comment.