Skip to content

Commit

Permalink
Add readme entry around upgrade to 0.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rondale-sc committed Aug 31, 2017
1 parent 9b1fad8 commit 5dc82a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,12 @@ module.exports = function(environment) {
}
```

### Upgrade to 0.4.x

As mentioned above you need to add the `{{head-layout}}` component once and only once in an application wide template. This template is usually `app/templates/application.hbs`, but could be different in your case. Previously, in ember-cli-head 0.3.x and below the component was appended to the document inside an instance initializer. This prevented the need for the `{{head-layout}}` component as it was automatically injected and used inside that initializer. Unfortunately, this approach needed to change so that we could render the component with the rest of the application rendering.

If you care to read more about the details of render please see the PR that introduced these changes https://github.com/ronco/ember-cli-head/pull/37

But for now, if you are upgrading to 0.4.x, you simply need to add `{{head-layout}}` component to your application wide template.

If you make use of this mode the content of `<head>` will be the static FastBoot rendered content through the life of your App.
2 changes: 1 addition & 1 deletion blueprints/ember-cli-head/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
} else {
let str = `You must add {{head-layout}} component to your topmost UI.
This is usually your app/templates/application.hbs, but was not found on your system.
Please see the README for more instructions https://github.com/ronco/ember-cli-head.`
Please see the README for more instructions https://github.com/ronco/ember-cli-head#upgrade-to-04x.`

this.ui.writeLine(chalk.yellow(str));
}
Expand Down

0 comments on commit 5dc82a3

Please sign in to comment.