Permalink
Browse files

Merge pull request #90 from jugoncalves/master

Improving templayed support
  • Loading branch information...
2 parents 11dbd57 + e118c48 commit 2511724c00276e0aa8ede7a739affebe09008e89 @tj committed Jan 29, 2013
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, engine(str));
+ fn(null, tmpl(options));
} catch (err) {
fn(err);
}

0 comments on commit 2511724

Please sign in to comment.