Mustache.js + jQuery: what is the minimal working example ?

后端 未结 2 938
时光取名叫无心
时光取名叫无心 2021-01-31 17:33

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

相关标签:
2条回答
  • 2021-01-31 18:14

    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

    0 讨论(0)
  • 2021-01-31 18:33

    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.

    0 讨论(0)
提交回复
热议问题