Commenting Your Twig Templates
Problem
You want to be a good dev and comment up all your code.
Solution
Wrap your comment in {# ... #}
, like this:
{# Holy cow Twig is awesome! #}
Discussion
The Craft documentation has more information:
Any text placed within comment tags will be removed entirely. Twig will not try to parse it or output it. So they’re a handy way to leave comments within your code without worrying about people finding it when they View Source on your site.
Submitted by Nathan Doyle on 1st February, 2017