Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Improving templayed support #90

Merged
merged 2 commits into from

3 participants

@jugoncalves

(Forbes Lindesay)[https://github.com/ForbesLindesay] made questions about cache support and he helped me to improve it.

Thank you, Forbes. :)

@tj tj merged commit 2511724 into tj:master
@ForbesLindesay

Incidentally @jugoncalves if you put an @ sign before someone's username it automatically becomes a link when in a github issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 25, 2013
  1. @jugoncalves
  2. @jugoncalves
This page is out of date. Refresh to see the latest.
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);
}
Something went wrong with that request. Please try again.