From c814e34df8916cd1d53503a1635450bda217dead Mon Sep 17 00:00:00 2001 From: Geoff Schmidt Date: Fri, 25 Nov 2011 23:59:57 -0800 Subject: [PATCH] make {{> foo bar}} shorthand actually work (previously, you would get an error about a circular reference while serializing JSON) --- packages/handlebars/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/handlebars/parse.js b/packages/handlebars/parse.js index ee097705df..f07f157bf5 100644 --- a/packages/handlebars/parse.js +++ b/packages/handlebars/parse.js @@ -92,7 +92,7 @@ Handlebars.to_json_ast = function (code) { throw new Error("Template names shouldn't contain '.' or '/'"); var x = ['>', id[1]]; if (node.context) - x = ['#', ['with', identifier(node.context)], [ret]]; + x = ['#', [[0, 'with'], identifier(node.context)], [x]]; ret.push(x); }, block: function (node) {