Dropwizard Mustache's Render not woking.
Can we handle events, such as change in select using Dropwizard Mustache.
<html>
<head>
</head>
<body>
<!-- calls getPerson().getName() and sanitizes it -->
<div id="myTemplate">hello {{name}}</div>
</body>
<script type="text/javascript">
$(document).ready(function() {
var myTemplate = $("#myTemplate").html();
console.log(myTemplate);
var obj = {
name: "sachin"
};
var filledTemlate = Mustache.render(myTemplate, obj);
console.log(filledTemlate);
$("#myTemplate").html(filledTemlate);
});
</script>
</html>