Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

improving templayed support

  • Loading branch information...
commit c262f0f2acc8f80179b42f8ce1a08719da579376 1 parent e55f541
@jugoncalves jugoncalves authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/consolidate.js
View
4 lib/consolidate.js
@@ -460,8 +460,8 @@ exports.templayed = fromStringRenderer('templayed');
exports.templayed.render = function(str, options, fn){
var engine = requires.templayed || (requires.templayed = require('templayed'));
try {
- var tmpl = cache(options) || cache(options, engine(str)(options));
- fn(null, tmpl);
+ var tmpl = cache(options) || cache(options, str);
+ fn(null, engine(tmpl)(options));
} catch (err) {
fn(err);
}
Please sign in to comment.
Something went wrong with that request. Please try again.