값을 Mustache에 전달하기 전에 준비해야합니다.
var values = [];
for (var key in folios) {
if (Object.prototype.hasOwnProperty.call(folios, key)) {
values.push(folios[key]);
}
}
var tpl = document.getElementById('folioTemplate').innerHTML;
document.getElementById("folios").innerHTML = Mustache.render(tpl, {'folios': values});
출처
https://stackoverflow.com/questions/22080029