2

This question was not thoroughly answered here: {{content-for 'head'}} Ember-cli

In the latest version of ember-cli, {{content-for 'head'}} is required in index.html (breaks when I remove it) with zero explanation about it in the docs. I got as far as reading about ember-cli-inline-content here: https://www.npmjs.org/package/ember-cli-inline-content. But where is 'head' defined in the latest ember-cli? Can someone explain this more thoroughly please?

Community
  • 1
  • 1
Effie K
  • 21
  • 1

1 Answers1

2

The docs have been updated with a bit more detail on what these hooks are, but the gist is that these are used to allow for ember-cli addons to inject content into the head of your document. They don't offer much beyond that for you to use directly, but they do need to be left in your index.html file so that they are available for any addons you may or may not use.

Dhaulagiri
  • 3,281
  • 24
  • 26
  • So to clarify, if you wanted to add a link to an external css file, you would just modify `index.html` and not use the `{{content-for 'head'}}` functionality? – JKillian Apr 21 '15 at 21:13