Comments

Buffered comments look the same as single-line JavaScript comments. They act sort of like markup tags, producing HTML comments in the rendered page. Like tags, buffered comments must appear on their own line.

Pug also supports unbuffered comments, by simply adding a hyphen. These are only for commenting on the Pug code itself, and do not appear in the rendered HTML.

Block Comments

A block comment is legal as well:

Conditional Comments

Pug does not have any special syntax for conditional comments, the peculiar method of adding fallback markup for old versions of Internet Explorer, but since all lines beginning with < are treated as plain text, normal HTML-style conditional comments will do fine.