Skip to content

Commit 5dc82a3

Browse files
committed
Add readme entry around upgrade to 0.4.x
1 parent 9b1fad8 commit 5dc82a3

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,12 @@ module.exports = function(environment) {
119119
}
120120
```
121121

122+
### Upgrade to 0.4.x
123+
124+
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.
125+
126+
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
127+
128+
But for now, if you are upgrading to 0.4.x, you simply need to add `{{head-layout}}` component to your application wide template.
129+
122130
If you make use of this mode the content of `<head>` will be the static FastBoot rendered content through the life of your App.

blueprints/ember-cli-head/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
} else {
1818
let str = `You must add {{head-layout}} component to your topmost UI.
1919
This is usually your app/templates/application.hbs, but was not found on your system.
20-
Please see the README for more instructions https://github.com/ronco/ember-cli-head.`
20+
Please see the README for more instructions https://github.com/ronco/ember-cli-head#upgrade-to-04x.`
2121

2222
this.ui.writeLine(chalk.yellow(str));
2323
}

0 commit comments

Comments
 (0)