30. var view = {
name: "Joe",
winnings: {
value: 1000
}
};
var template = "Welcome, {{name}}! {{>winnings}}"
var partials = {
winnings: "You just won ${{value}}?
};
var output = Mustache.to_html(template, view,
partials)
output will be:
Welcome, Joe! You just won $1000
https://github.com/janl/mustache.js