Skip to content

Commit 29b1ea5

Browse files
committed
1 parent b5cbe01 commit 29b1ea5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ Here is a view function that has two arguments: JSON 'record' and the index. I h
3838

3939

4040
```javascript
41-
var template = Mustache.compile($.trim($("#template").html()));
41+
var template = $.trim($("#template").html());
42+
Mustache.parse(template);
4243

4344
var view = function(record, index){
44-
return template({record: record, index: index});
45+
return Mustache.render(template, {record: record, index: index});
4546
};
4647
```
4748

0 commit comments

Comments
 (0)