gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 22:26:42 25 4
gpt4 key购买 nike

有人可以告诉我如何在 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.

{{! This is a comment }}

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

<div>
{{! This comment will not end up in the output }}
<!-- This comment will show up in the output -->
</div>

关于ember.js - 如何在 emberjs 脚本句柄中进行注释?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9896898/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com