Permalink
Browse files

improving templayed support

  • Loading branch information...
cyberglot committed Jan 25, 2013
1 parent e55f541 commit c262f0f2acc8f80179b42f8ce1a08719da579376
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, engine(str)(options));
- fn(null, tmpl);
+ var tmpl = cache(options) || cache(options, str);
+ fn(null, engine(tmpl)(options));
} catch (err) {
fn(err);
}

0 comments on commit c262f0f

Please sign in to comment.