Skip to content

Commit

Permalink
update example code block
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Nov 14, 2013
1 parent cfdbeb2 commit 037b5cd
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ seajs.use(['widget', 'templatable', 'handlebars', '$'], function(Widget, Templat

### HTML

````html
<div id="example3" class="example">
<script id="template-c" type="text/x-handlebars-template">
<div>
Expand All @@ -107,17 +108,7 @@ seajs.use(['widget', 'templatable', 'handlebars', '$'], function(Widget, Templat
</div>
</script>
</div>

```
<div id="example3" class="example">
<script id="template-c" type="text/x-handlebars-template">
<div>
<h3>{{title}}</h3>
<ul>{{list items}}</ul>
</div>
</script>
</div>
```
````

### JavaScript

Expand All @@ -136,7 +127,7 @@ seajs.use(['widget', 'templatable', 'handlebars', '$'], function(Widget, Templat
},

templateHelpers: {
'list': function(items) {
'list': function(items, options) {
var out = '';

for (var i = 0, len = items.length; i < len; i++) {
Expand Down

0 comments on commit 037b5cd

Please sign in to comment.