ember.js – 如何在emberjs脚本句柄中进行注释?

有人可以告诉我如何在emberjs的handlebars模板中包含注释的代码?

  <script id="restaurantDetail" data-template-name='restaurantDetail' type="text/x-handlebars">
//Commented code goes here
</script>
github page的外观,你想要{{!这里的评论文字}}:

Comments

You can add comments to your templates with the following syntax.

06000

You can also use real html comments if you want them to end up in the output.

06001

http://stackoverflow.com/questions/9896898/how-to-do-commenting-in-emberjs-script-handlebars

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:ember.js – 如何在emberjs脚本句柄中进行注释?