0.0.3 • Published 4 years ago

ember-cli-inline-template-only-components v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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-components

Usage

  • wrap template logic inside InlineComponentTemplate component.
  • specify local name in name attribute.

  • invoke locally defined component using component helper and from-inline-template helper.

<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.