From 3a5b5e28c8a33a7732e2d7d053dab2fefbce8090 Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Tue, 16 Jul 2013 19:35:16 -0700 Subject: [PATCH] support multiple tags --- packages/templating/plugin/html_scanner.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/templating/plugin/html_scanner.js b/packages/templating/plugin/html_scanner.js index 6a9197e148..83eea546f9 100644 --- a/packages/templating/plugin/html_scanner.js +++ b/packages/templating/plugin/html_scanner.js @@ -169,8 +169,9 @@ html_scanner = { var renderFuncCode = Spacebars.compile( contents, { sourceName: "" }); - results.js += "\nBody = UI.Component.extend({render: " + renderFuncCode + ", isRoot: true});\n"; - results.js += '\nMeteor.startup(function () { (new Body).attach(document.body); });\n'; + // We may be one of many `` tags. Eventually + // we may need to combine explicitly. + results.js += "\nMeteor.startup(function () { UI.Component.create({render: " + renderFuncCode + ", isRoot: true}).attach(document.body); });\n"; } } };