1

我的模板中有以下内容

{{! This is a comment that shouldn't be rendered }}

我在这里使用演示进行了尝试:http: //mustache.github.com/#demo

并在这里找到了一个小胡子的例子: https ://github.com/janl/mustache.js/blob/master/examples/comments.html

但是评论正在我的模板中呈现。

我正在使用 iCanHaz 0.9。

4

1 回答 1

1

一定是 mustache.js 的某种错误 - 你应该向他们报告

如果您尝试{{ ! This is a comment that shouldn't be rendered }} (注意额外的空格),则不会呈现评论

于 2011-09-28T05:24:45.137 回答