/ember-element-helper

Dynamic element helper for Glimmer templates.

Primary LanguageJavaScriptMIT LicenseMIT

ember-element-helper

Build Status

Dynamic element helper for Glimmer templates.

See this RFC comment for more context and motivation.

Installation

ember install ember-element-helper

Usage

{{#let (element this.tagName) as |Tag|}}
  <Tag class="my-tag">hello world!</Tag>
{{/let}}

Contributing

Installation

  • git clone <repository-url>
  • cd ember-element-helper
  • yarn install

Linting

  • yarn lint:hbs
  • yarn lint:js
  • yarn lint:js --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions
  • yarn test:node – Runs the additional test suite for syntax errors

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.