In this example, I have shared how to do commenting in emberjs script handlebars? I recommend using {{!– comment here –}} because this comment syntax can contain new lines and also }} inside the comment.
For example:
Bad comments:
1 2 3 | {{! badly commented {{if somecondition "red" "blue" }} }} {{! badly multiline comments another line }} |
Comment that works:
1 2 3 | {{!-- this is commented correctly {{if somecondition "red" "blue" }} --}} {{!-- correct multiline comments another line --}} |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.