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

后端 未结 2 937
时光取名叫无心
时光取名叫无心 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: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.

提交回复
热议问题