Comments in Jade/pug

Solution 1:

As written in the comment documentation, you can either use // which will translate to a HTML comment or //- which won't be visible in the outputted HTML code.

Solution 2:

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