Skip to content

Ember input component for easily building template strings from an available list of options

License

Notifications You must be signed in to change notification settings

knownasilya/ember-template-input

Repository files navigation

ember-template-input

Ember input component for easily building template strings from an available list of options.

NPM Build Status Ember Observer Score

Install with the following command (requires Ember CLI).

ember install ember-template-input

Note: This addon doesn't work with the Grammarly extension enabled.

Usage

{{template-input options=options template=template onChange=(action (mut template))}}
  • options is an array of strings, e.g. ['option1', 'option2'].
  • template is a string in the form of 'my string {option1} and {option2}', where option1 and option2 exist in the options array.
  • onChange is an action that returns the updated template.

Installation

  • git clone <repository-url> this repository
  • cd ember-template-input
  • npm install

Linting

  • npm run lint:js
  • npm run 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

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.