I would like to use mustache.js with jQuery in my HTML5 app, but I can\'t make all the component work together. Every file is found, there is no problem here (the template is lo
I know this question already ahs been answered, however I wrote a blog post on precisely this topic and thought I would share it here so anyone looking for examples of how to use Mustache with jQuery might see it.
http://blog.xoundboy.com/?p=535
In place of Mustache.to_html
, try $.mustache
. It looks to me like the Mustache
variable is defined within the function, so it is not directly accessible outside of it.