Learn Pod structure
イシュー
- Pod(Plain Old Data) structure を学べ
参考
- Ember CLI | A command line utility for creating ambitious web applications
- Plain old data structure - Wikipedia, the free encyclopedia
- POD型とnon-POD型 - C++と色々
- プリミティブなデータ型からなるstructureのことらしい(C++の場合)
- What are POD types in C++? - Stack Overflow
- Models in POD structure · Issue #28 · ember-cli/ember-resolver · GitHub
- pod directory structure の絵がある。i want とあるからまだ議論中っぽい、、
ember-cli POD
As your app gets bigger, a feature-driven structure may be better. Splitting your application by functionality/resource would give you more power and control to scale and maintain it. As a default, if the file is not found on the POD structure, the Resolver will look it up within the normal structure.
- アプリが大きくなるにつれて、機能駆動型の構造にした方が良いかもしれません。
- アプリケーションを機能性/リソースによって分割すると、スケーリングしますし、それを維持するためにより多くのパワーとコントロールを与えられるでしょう。
- デフォルトとして、もしそのファイルがPOD構造を見つけられない場合は、リゾルバは通常の構造の中でそれを検索しようとします。
In this case, you should name the file as its functionality. Given a resource Users, the folder structure would be: app/users/controller.js app/users/route.js app/users/template.hbs
- この場合、あなたはその機能に応じたファイル名を付ける必要があります。User リソースの場合、フォルダ構造は次のようになります。
- app/users/controller.js
- app/users/route.js
- app/users/template.hbs
Rather than hold your resource folders on the root of your app you can define a POD path using the attribute podModulePrefix within your environment configs. The POD path should use the following format: {appname}/{poddir}.
- アプリケーションのルートにあなたのリソースフォルダを保持するのではなく、configs内の属性podModulePrefixを使用してPODパスを定義することができます。
- PODのパスは次の形式を使用する必要があります。
- {APPNAME}/{poddir}
PODサンプル
- Ember CLI | A command line utility for creating ambitious web applications
- The built-in blueprints that support pods structure are:
- adapter
- component
- controller
- model
- route
- resource
- serializer
- template
- transform
- view
- The built-in blueprints that support pods structure are: