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"; } } };