Skip to content

Commit

Permalink
Update Readme with syntax for usage with tagged templates
Browse files Browse the repository at this point in the history
  • Loading branch information
thec0keman authored Oct 30, 2019
1 parent d1b9683 commit 067816c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,32 @@ module.exports = {
};
```

### Tagged Template Usage / Migrating from `htmlbars-inline-precompile`

Prior syntax:

```
import hbs from 'htmlbars-inline-precompile';
...
await render(hbs`
<MyComponent />
`);
```

New syntax:

```
import { hbs } from 'ember-cli-htmlbars';
...
await render(hbs`
<MyComponent />
`);
```

### Handlebars 2.0 Support (Ember < 1.10)

Handlebars 2.0 support has been removed. If you are using ember-cli-htmlbars with a 1.9.x project please continue
Expand Down

0 comments on commit 067816c

Please sign in to comment.