Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 SilverStripe 3 中,如何在模板文件中添加多行注释?
可以使用单行注释(或将发送到浏览器但隐藏不显示<%-- my comment --%>的html方式。)<!-- my comment -->
<%-- my comment --%>
<!-- my comment -->
据我所知,silverstripe 模板中没有多行注释。一个丑陋的解决方法是<% if false %>,像这样:
<% if false %>
<% if false %> some comment text here <% end_if %>