Block comments in Pug (Jade)?

Viewed 22458

How do you block comment out code in the Pug templating engine?

I know how to comment out a line:

//-doesn't show

but I don't want to have to write in full html comments like so:

<!--
    no show
-->
2 Answers

Official Documentation

https://pugjs.org/language/comments.html#block-comments


Buffered comments - The comment will appear in rendered HTML

//
    Comments for your HTML readers.
    Use as much text as you want.


Unbuffered comments - The comment will not appear in rendered HTML

//-
    Comments for your template writers.
    Use as much text as you want.
Related