Skip to content

Commit

Permalink
Update to always name inline Handlebars
Browse files Browse the repository at this point in the history
As of http://emberjs.com/blog/2012/10/25/ember-1-0-pre2/ inline Handlebars templates must always be named
  • Loading branch information
tomchiverton committed Nov 2, 2012
1 parent da2e71c commit a7e5ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/docs/handlebars.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ To immediately insert a template into your document, place it inside a `<script>
```handlebars
<html>
<body>
<script type="text/x-handlebars">
<script type="text/x-handlebars" data-template-name="application">
Hello, <b>{{MyApp.name}}</b>
</script>
</body>
</html>
```

To make a template available to be used later, give the `<script>` tag a `data-template-name` attribute:
Adding a `data-template-name` attribute makes the template available to use later:

```handlebars
<html>
Expand Down

0 comments on commit a7e5ee9

Please sign in to comment.