ember-cli-content-for-nested
v1.0.3
Published
ember-cli nested addons contentFor workaround
Downloads
28
Readme
ember-cli-content-for-nested
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">`;
}
}]);
}
};