JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://cdnjs.cloudflare.com/ajax/libs/mustache.js/0.4.2/mustache.min.js"></script>
<script type="template" id="some-tpl">Base
<div id="some-id">
{{#items}}
<ul>
{{#name}}
<li>{{.}}</li>
{{/name}}
</ul>
{{/items}}
</div>
</script>
JavaScript
var data = { "items" : { "name" : ["Item 1", "Item 2", "etc"]}},
data2 = { "items" : {}},
tpl = $('#some-tpl').html(),
html = Mustache.to_html(tpl, data),
html2 = Mustache.to_html(tpl, data2);
document.write(html);
document.write(html2);
$('div').css({'border': '1px solid blue', 'margin': '1em'});