Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 470 Bytes

no-html-comments.md

File metadata and controls

15 lines (10 loc) · 470 Bytes

no-html-comments

HTML comments in your templates will get compiled and rendered into the DOM at runtime. This is undesirable in a production environment. Instead, you can annotate your templates using Handlebars comments, which will be stripped out when the template is compiled and have no effect at runtime.

This rule forbids the following:

<!-- comment goes here -->

This rule allows the following:

{{!-- comment goes here --}}