header
, inc/header
and ../header
are just the key names in the partials object that passed during rendering, which have partial text values
var tmpl = "{{>header}} {{>inc/header}} {{>../header}}", data = {}, partials = { header : "<header>example</header>", 'inc/header' : "<header>xmpl</header>", '../header' : "whatever" }, html = Mustache.render(tmpl, data, partials); document.write(html);
See here at jsFiddle http://jsfiddle.net/maxbeatty/CWKHe/
maxbeatty
source share