From 6f5c6d028b1c8741d91e5226e95b272de03d724f Mon Sep 17 00:00:00 2001 From: thegrandpoobah Date: Tue, 22 Mar 2011 14:46:30 -0400 Subject: [PATCH] Remove contextStack parameter which is left over from the interpreter module --- mustache.js | 76 ++++++++++++++++++++++++++--------------------------- 1 file changed, 37 insertions(+), 39 deletions(-) diff --git a/mustache.js b/mustache.js index 22ca95b..dc7f939 100644 --- a/mustache.js +++ b/mustache.js @@ -125,12 +125,12 @@ var Mustache = function() { return output.length > limit ? output.slice(0, limit) : output; }, - render: function(template, context, partials) { + render: function(template, partials) { template = this.parse_pragmas(template, '{{', '}}'); var tokens = this.tokenize(template, '{{', '}}'); - this.parse(this.createParserContext(tokens, partials, '{{', '}}'), [context]); + this.parse(this.createParserContext(tokens, partials, '{{', '}}')); }, createParserContext: function(tokens, partials, openTag, closeTag) { @@ -221,7 +221,7 @@ var Mustache = function() { }); }, - parse: function(parserContext, contextStack) { + parse: function(parserContext) { var state = 'text'; for (; parserContext.index