diff --git a/mustache.js b/mustache.js index 95088d2..4d48090 100644 --- a/mustache.js +++ b/mustache.js @@ -19,7 +19,8 @@ var Mustache = function() { render: function(template, context, partials, in_recursion) { // reset buffer // TODO: make this non-lazy - this.buffer = []; + if(!in_recursion) + this.buffer = []; // fail fast if(!this.includes("", template)) { if(in_recursion) {