Permalink
Browse files

improving templayed support

  • Loading branch information...
cyberglot committed Jan 25, 2013
1 parent c262f0f commit e118c487db4315836bcf42d533324e46d789dbd9
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/consolidate.js
View
@@ -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, str);
- fn(null, engine(tmpl)(options));
+ var tmpl = cache(options) || cache(options, engine(str));
+ fn(null, tmpl(options));
} catch (err) {
fn(err);
}

0 comments on commit e118c48

Please sign in to comment.