多くのHTMLテンプレートファイルを含む大規模なMeteorアプリを構築するためのベストプラクティスは何ですか?

アンドリューアロー

すべての例(リーダーボード、言葉遊びなど)には、単一のHTMLテンプレートファイルがあります。ベストプラクティスの例として使用できるさまざまなHTMLテンプレートファイルを含む大規模なオープンソースのMeteorプロジェクトはありますか?大規模なアプリに必要なものすべてを1つのテンプレートファイルにまとめるのは実用的ではないようです。

mdgrech

まとめて!ドキュメントから:

> 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]

編集
0

コメントを追加

0

関連記事

Related 関連記事

ホットタグ

アーカイブ