<body> 在 Meteor 包内

<body> inside Meteor package

我试图了解 Meteor accounts-ui-unstyled 包,我很惊讶地发现虽然 "main" 模板是 {{> loginButtons}},因为它是一个我们包含在我们的网页中,包中有一个文件包含一个 <body> 标签,其中有一些其他模板。 这是如何工作的(同一个最终网页中的两个 body 标签)?

Quoting official Meteor full docs :

HTML files in a Meteor application are treated quite a bit differently from a server-side framework. Meteor scans all the HTML files in your directory for three top-level elements: <head>, <body>, and <template>. The head and body sections are separately concatenated into a single head and body, which are transmitted to the client on initial page load.