Skip to content

Commit

Permalink
problem is in node compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
noel-schenk committed Sep 19, 2019
1 parent 9b36280 commit fb9ffce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/consolidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -1774,10 +1774,7 @@ exports.twing.render = function(str, options, cb) {
return promisify(cb, function(cb) {
var engine = requires.twing || (requires.twing = require('twing'));
try {
var rendTmpl = new engine.TwingLoaderNull();
rendTmpl = new engine.TwingEnvironment(rendTmpl);
rendTmpl = rendTmpl.createTemplate(str);
rendTmpl = rendTmpl.render(options);
var rendTmpl = new engine.TwingEnvironment(new engine.TwingLoaderNull()).createTemplate(str).render(options);
var tmpl = cache(options) || cache(options, rendTmpl);
cb(null, tmpl);
} catch (err) {
Expand Down

0 comments on commit fb9ffce

Please sign in to comment.