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