开发者

Comments in mustache.js icanhaz don't work?

开发者 https://www.devze.com 2023-04-08 12:05 出处:网络
I have the following in my template {{! This is a comment that shouldn\'t be开发者_如何转开发 rendered }}

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

精彩评论

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