We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5cbe01 commit 29b1ea5Copy full SHA for 29b1ea5
README.md
@@ -38,10 +38,11 @@ Here is a view function that has two arguments: JSON 'record' and the index. I h
38
39
40
```javascript
41
-var template = Mustache.compile($.trim($("#template").html()));
+var template = $.trim($("#template").html());
42
+Mustache.parse(template);
43
44
var view = function(record, index){
- return template({record: record, index: index});
45
+ return Mustache.render(template, {record: record, index: index});
46
};
47
```
48
0 commit comments