ember-cli-inline-template-only-components
v0.0.3
Published
Inline Templates for EmberJS
Readme
ember-cli-inline-template-only-components
This addon allow developers create inline template only components.
Compatibility
- Ember.js v3.4 or above
- Ember CLI v2.13 or above
- Node.js v8 or above
Installation
ember install ember-cli-inline-template-only-componentsUsage
wrap template logic inside
InlineComponentTemplatecomponent.specify local name in
nameattribute.invoke locally defined component using
componenthelper andfrom-inline-templatehelper.
<InlineComponentTemplate name="congrats">
Hello, World, I'm {{@name}}
</InlineComponentTemplate>
{{component (from-inline-template "congrats") name="Template"}}
** nested InlineComponentTemplates not suppoprted.
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.
