https://github.com/crowdstrike/ember-cli-content-for-nested
ember-cli nested addons contentFor workaround
https://github.com/crowdstrike/ember-cli-content-for-nested
Last synced: 10 months ago
JSON representation
ember-cli nested addons contentFor workaround
- Host: GitHub
- URL: https://github.com/crowdstrike/ember-cli-content-for-nested
- Owner: CrowdStrike
- License: mit
- Created: 2018-10-16T13:00:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-04T17:34:12.000Z (over 7 years ago)
- Last Synced: 2025-09-09T01:28:56.173Z (10 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ember-cli-content-for-nested
[](https://badge.fury.io/js/ember-cli-content-for-nested)
ember-cli nested addons contentFor workaround
## Usage
```js
// 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 ``;
}
}]);
}
};
```