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

翻译自:https://stackoverflow.com/questions/9896898/how-to-do-commenting-in-emberjs-script-handlebars

转载注明原文:ember.js – 如何在emberjs脚本句柄中进行注释?