An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# ember-cli-content-for-nested

[![npm version](https://badge.fury.io/js/ember-cli-content-for-nested.svg)](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 ``;
}
}]);
}
};
```