O'Reilly logo

Mastering Ember.js by Mitchel Kelonye

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding comments in templates

Comments in Handlebars have the {{! … }} signature. For example, we can add a documentation that signifies the end of a footer:

  </footer> {{! end of footer}}

These expressions serve the same purpose as normal HTML comments, other than the fact that they are not actually converted to the latter. Therefore, a good reason to use them is when we don't want comments to appear in the rendered output.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required