Templates SilverStripe3:模板中的多行注释
在SilverStripe 3中,如何在模板文件中放置多行注释?单行注释可以使用Templates SilverStripe3:模板中的多行注释,templates,comments,multiline,silverstripe,Templates,Comments,Multiline,Silverstripe,在SilverStripe 3中,如何在模板文件中放置多行注释?单行注释可以使用(或html方式,该方式将发送到浏览器,但不显示。) 据我所知,silverstripe模板中没有多行注释。 一个难看的解决办法是,如下所示: <% if false %> some comment text here <% end_if %> 一些 评论 文本 在这里
(或html方式
,该方式将发送到浏览器,但不显示。)
据我所知,silverstripe模板中没有多行注释。
一个难看的解决办法是
,如下所示:
<% if false %>
some
comment
text
here
<% end_if %>
一些
评论
文本
在这里