How to define mustache partials in HTML?
this is my html: <script type="text/html" id="ul-template"> <ul id="list"> {{> li-templ}} </ul> </script> <script type="text/html" id="ul-template2"> <div id="list2"> {{> li-templ}} </div> </script> <script type="text/html" id="li-templ"> <p>{{ name }}</p> </script> as you can see, I want to reuse the #li-templ part, but it seems that I have to write it into a file called li-templ.mustache then I can include it as partial ? can I just define them in the single html file? I'm assuming you're using the JS flavor of Mustache. In mustache.js an object of partials may be passed as the third