Comments

    Like tags, buffered comments must appear on their own line.

    1. <p>foo</p>
    2. <p>bar</p>

    These are only for commenting on the Pug code itself, and do not appear in the rendered HTML.

    1. <p>foo</p>
    2. <p>bar</p>
    1. <!--Comments for your HTML readers.
    2. </body>

    Conditional Comments

    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.)

    1. <!DOCTYPE html>
    2. <!--[if IE 8]>
    3. <html lang="en" class="lt-ie9">
    4. <![endif]-->
    5. <!--<![endif]-->
    6. <body>
    7. <p>Supporting old web browsers is a pain.</p>
    8. </body>