Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Custom Delimiter For Mustache.js

 var customTags = [ '<%', '%>' ];
  var rendered = Mustache.render("<%name%>",  {
  "name": "John",
},{}, customTags);
		  document.getElementById('target').innerHTML = rendered;
 
PREVIOUS NEXT
Tagged: #Custom #Delimiter #For
ADD COMMENT
Topic
Name
7+8 =