ruby – 在Slim模板中,单独行上的HTML注释呈现在同一行上
发布时间:2020-12-16 21:30:50 所属栏目:百科 来源:网络整理
导读:在SLIM中编写 HTML注释时: /! The first line of comments/! The second line of comments 输出变成了 !-- The first line of comments --!-- The second line of comments -- 所有其他生成的HTML都经过适当的格式化和缩进,因为我设置的等于true 我正在为其
在SLIM中编写
HTML注释时:
/! The first line of comments /! The second line of comments 输出变成了 <!-- The first line of comments --><!-- The second line of comments --> 所有其他生成的HTML都经过适当的格式化和缩进,因为我设置的等于true 我正在为其他人编写模板,所以我需要带有换行符的注释以便于阅读. 解决方法
您可以在Slim中实现单个多行注释,如下所示:
/! The first line of comments The second line of comments 哪个应该输出这个: <!-- The first line of comments The second line of comments --> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |