I tried making comments in Jade/pug, but the comments render as text in the HTML. This is my code:
doctype html html(lang='en') body / This should be a comment
What am I doing something stupid?
In jade we use //- for comment. If you are trying to comment a block, make sure it should be indented properly like in below example-
doctype html html(lang='en') body //- This should be a comment Indent correctly for block content