grunt-ember-templatesを使用してテンプレートをプリコンパイルしています。このツールは、予想どおり、私のテンプレートをEmber.TEMPLATES
配列に入れています。の構成を微調整していますgrunt-ember-templates
。Ember.TEMPLATES
そのために、配列で予想されるキーは何かを知りたいです。このテンプレートがあるとしましょう:
<script type="text/x-handlebars" data-template-name="phones/index">
....
</script>
現在、このテンプレートは というファイルapp/templates/phones_index.hbs
にあり、grunt-ember-templates
コンパイル済みのテンプレートを に入れてEmber.TEMPLATES["app/templates/phones_index"]
いますが、これは間違っています。
の予想されるキーは何data-template-name="phones/index"
ですか?