ember-cli-content-for-nested

1.0.3 • Public • Published

ember-cli-content-for-nested

npm version

ember-cli nested addons contentFor workaround

Usage

// index.js
const contentForNested = require('ember-cli-content-for-nested');

module.exports = {
  contentFor: contentForNested,
  // or
  contentFor(type, { rootURL }) {
    return contentForNested.apply(this, [...arguments, () => {
      switch (type) {
        case 'head':
          return `<link rel="stylesheet" href="${rootURL}assets/normalize.css">`;
      }
    }]);
  }
};

Readme

Keywords

none

Package Sidebar

Install

npm i ember-cli-content-for-nested

Weekly Downloads

7

Version

1.0.3

License

MIT

Unpacked Size

3.25 kB

Total Files

4

Last publish

Collaborators

  • kellyselden