https://github.com/miguelcobain/ember-dynamic-render-template
Render DOM from a template string.
https://github.com/miguelcobain/ember-dynamic-render-template
Last synced: about 1 year ago
JSON representation
Render DOM from a template string.
- Host: GitHub
- URL: https://github.com/miguelcobain/ember-dynamic-render-template
- Owner: miguelcobain
- License: mit
- Created: 2017-03-13T19:27:27.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-06-25T11:48:49.000Z (almost 5 years ago)
- Last Synced: 2024-10-18T23:24:13.713Z (over 1 year ago)
- Language: JavaScript
- Size: 253 KB
- Stars: 14
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-ember - ember-dynamic-render-template - Render DOM from a template string. (Packages / Weird)
README
# ember-dynamic-render-template [](https://travis-ci.org/miguelcobain/ember-dynamic-render-template)
This addon allows you to render from an handlebars string.
**NOTE1:** This is an experimental addon, mostly used for creating interactive examples.
**NOTE2:** This will include the handlebars compiler in your app.
## Usage
```hbs
{{render-template
templateString="String: {{a}} + {{b}} = {{c}} - {{my-component}}"
props=(hash a=1 b=1 c=2)}}
```
Installation
------------------------------------------------------------------------------
```
ember install ember-dynamic-render-template
```
### 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
* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
License
------------------------------------------------------------------------------
This project is licensed under the [MIT License](LICENSE.md).