我尝试在Jade/Pug中添加注释,但注释会作为文本呈现在HTML中。以下是我的代码:
doctype html
html(lang='en')
body
/ This should be a comment
我是否在做一些愚蠢的事情?
//- test comment
这个注释,在浏览器的源代码视图(按下ctrl+u)中输出。我是不是漏掉了某个设置或者其他什么东西? - Valdoctype html
html(lang='en')
body
//-
This should be a comment
Indent correctly for block content