Mustache.js + jQuery: what is the minimal working example ?
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.
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.