すべての例(リーダーボード、言葉遊びなど)には、単一のHTMLテンプレートファイルがあります。ベストプラクティスの例として使用できるさまざまなHTMLテンプレートファイルを含む大規模なオープンソースのMeteorプロジェクトはありますか?大規模なアプリに必要なものすべてを1つのテンプレートファイルにまとめるのは実用的ではないようです。
まとめて!ドキュメントから:
> 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 seperately concatenated
> into a single head and body, which are transmitted to the client on
> initial page load.
>
> Template sections, on the other hand, are converted into JavaScript
> functions, available under the Template namespace. It's a really
> convenient way to ship HTML templates to the client. See the templates
> section for more.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加