question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handlebars comments

See original GitHub issue

Would be great to have a syntax for comments. Like Handlebars does:

{{!-- comment block --}}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jeroenlammertscommented, Oct 5, 2016

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

1reaction
itsMapleLeafcommented, Jul 12, 2016

For the record, using Javascript multilines works for this purpose.

<template>
  {{"I get rendered"}}
  {{/* I do not */}}
</template>
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found