Skip to content

Commit

Permalink
Don't join and return the buffer with custom send functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
janl committed Mar 2, 2010
1 parent 17fa3c7 commit 3944cfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mustache.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ var Mustache = function() {
renderer.send = send_fun;
}
renderer.render(template, view, partials);
return renderer.buffer.join("\n");
if(!send_fun) {
return renderer.buffer.join("\n");
}
}
});
}();

0 comments on commit 3944cfc

Please sign in to comment.