Handlebars comments
See original GitHub issueWould be great to have a syntax for comments. Like Handlebars does:
{{!-- comment block --}}
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Introduction | Handlebars
# Template comments ... You can use comments in your handlebars code just as you would in your code. Since there is generally...
Read more >How to use comments in Handlebar templates? - Stack Overflow
Just add an exclamation mark after the opening brackets. Normal Expression: {{expressions}}. Commented Expression: {{!expressions}}.
Read more >Handlebars comments and multiline comments - JSFiddle
<script id="food-template" type="text/x-handlebars-template">. 2. . 3. {{! Single line comment }}. 4. . 5. . 6. {{!--. 7. For multi line. 8. comments...
Read more >Handlebars.js documentation - DevDocs
You can use comments in your handlebars code just as you would in your code. Since there is generally some level of logic,...
Read more >HTML comments in handlebars templates cause error. #1580
@phpaddiction The issue is that Handlebars is not aware of its surrounding code. It doesn't know that it's inside of a comment so...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is there going to a setting in 2.0 to keep the comments? https://jsfiddle.net/tf7ja0y4/
Would be nice to have a setting like ractive
For the record, using Javascript multilines works for this purpose.