var customTags = [ '<%', '%>' ]; var rendered = Mustache.render("<%name%>", { "name": "John", },{}, customTags); document.getElementById('target').innerHTML = rendered;