You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, the `Mustache.render` function takes two parameters: 1) the [mustache](http://mustache.github.io/) template and 2) a `view` object that contains the data and code needed to render the template.
@@ -65,8 +63,8 @@ If you need a template for a dynamic part in a static website, you can consider
65
63
// file: render.js
66
64
67
65
functionrenderHello() {
68
-
var template =document.getElementById('template').innerHTML;
69
-
var rendered =Mustache.render(template, { name:'Luke' });
@@ -430,7 +428,7 @@ Custom delimiters can be used in place of `{{` and `}}` by setting the new value
430
428
The `Mustache.tags` property holds an array consisting of the opening and closing tag values. Set custom values by passing a new array of tags to `render()`, which gets honored over the default values, or by overriding the `Mustache.tags` property itself:
0 commit comments