开发者

Comments in mustache.js icanhaz don't work?

I have the following in my template

{{! This is a comment that shouldn't be开发者_如何转开发 rendered }}

I tried it using the demo here: http://mustache.github.com/#demo

And found an example from mustache here: https://github.com/janl/mustache.js/blob/master/examples/comments.html

But comments are rendering in my templates.

I'm using iCanHaz 0.9.


Must be some sort of bug with mustache.js - you should report it to them

If instead you try {{ ! This is a comment that shouldn't be rendered }} (notice the extra space), the comment will NOT be rendered

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜