Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html-beautify formats handlebars comments but does not format html comments #635

Closed
donwalling opened this issue Mar 7, 2015 · 0 comments

Comments

@donwalling
Copy link
Contributor

My company has a requirement to leave handlebars comments as-is. html-beautify leaves comments as-is, but formats {{! ... }}. E.g.

{{!

  Copyright 2015 MyCompany Incorporated
  All Rights Reserved.

}}
\<div {{#if test}} class="foo" {{/if}}>{{!comment}}\</div>

is formatted as

{{! Copyright 2015 MyCompany Incorporated All Rights Reserved. }}
\<div {{#if test}} class="foo" {{/if}}>{{!comment}}\</div>

This is an improvement request to leave handlebars comments as unformatted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants