mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
make {{> foo bar}} shorthand actually work
(previously, you would get an error about a circular reference while serializing JSON)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user