Like tags, buffered comments must appear on their own line.
Pug also supports unbuffered comments. Simply add a hyphen (
-) to the start of the comment.
These are only for commenting on the Pug code itself, and do not appear in the rendered HTML.
Block comments work, too:
Pug does not have any special syntax for conditional comments. (Conditional comments are a peculiar method of adding fallback markup for old versions of Internet Explorer.)
However, since all lines beginning with
< are treated as plain text, normal HTML-style conditional comments work just fine.