diff --git a/mustache.js b/mustache.js index 8ec1b44..7c1493c 100644 --- a/mustache.js +++ b/mustache.js @@ -597,7 +597,8 @@ var value = isFunction(partials) ? partials(token[1]) : partials[token[1]]; if (value != null) - return this.renderTokens(this.parse(value, tags), context, partials, value); + return this.renderTokens(this.parse(value, tags), context.view[token[1]] ? + context.push(context.view[token[1]]) : context, partials, value); }; Writer.prototype.unescapedValue = function unescapedValue (token, context) {