diff --git a/README.md b/README.md index a6c0a3f..d204410 100644 --- a/README.md +++ b/README.md @@ -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 `` will be the static FastBoot rendered content through the life of your App. diff --git a/blueprints/ember-cli-head/index.js b/blueprints/ember-cli-head/index.js index b6b4465..0119a42 100644 --- a/blueprints/ember-cli-head/index.js +++ b/blueprints/ember-cli-head/index.js @@ -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)); }