在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 -->