Skip to content

Commit

Permalink
Merge pull request #332 from vladimyr/fix-mustache-suport
Browse files Browse the repository at this point in the history
Fix mustache support
  • Loading branch information
doowb authored Mar 15, 2020
2 parents f974b92 + 6068c17 commit 9f4e776
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/consolidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ exports.mustache.render = function(str, options, cb) {
return promisify(cb, function(cb) {
var engine = requires.mustache || (requires.mustache = require('mustache'));
try {
cb(null, engine.to_html(str, options, options.partials));
cb(null, engine.render(str, options, options.partials));
} catch (err) {
cb(err);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"marko": "^3.12.0",
"mocha": "^3.1.2",
"mote": "^0.2.0",
"mustache": "^2.2.1",
"mustache": "^4.0.0",
"nunjucks": "^3.0.0",
"plates": "~0.4.8",
"pug": "^2.0.0-beta6",
Expand Down

0 comments on commit 9f4e776

Please sign in to comment.