ember-template-input
Ember input component for easily building template strings from an available list of options
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}', whereoption1
andoption2
exist in theoptions
array.onChange
is an action that returns the updated template.
Installation
git clone <repository-url>
this repositorycd ember-template-input
npm install
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.