Edit in JSFiddle

$(document).ready(function () {
    var output = $("#output");    
    var template = $("#test1").html();
    
    // render string
    var data1 = "This is Test 1 data";
    var html = Mustache.render(template, data1);
    output.append(html);

    // render int
    data1 = 43;
    var html = Mustache.render(template, data1);
    output.append(html);
    
    //render date
    data1 = new Date();
    var html = Mustache.render(template, data1);
    output.append(html);
});
<h2>Example 1 : anonymous data item</h2>

<div id="output"></div>

<script type="text/html" id="test1">
    <p>{{.}}</p>
</script>