What am I doing wrong here?
<!doctype html>
<html>
<head>
<title>Testing</title>
<script src="mustache.js"></script>
</head>
<body>
<script type="text/javascript">
var musk = ["athos", "porthos", "some other guy"];
var output = Mustache.render("<div>The three <br>{{#musk}}<p>{{.}}</p>{{/musk}}<br> Those guys</div>", musk);
console.log(output);
</script>
</body>
</html>
This give me:
<div>The three <br><br> Those guys</div>
If I’m not mistaken, I’m copying the example from the github page almost identically. Also, I’m pretty sure html is allowed inside the template, just not inside the content or view. Right?
You need to name the input array like this: