We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The code looked like this before beautification:
{{#*inline "MyInlinePartial"}} {{MyIdentifier}} {{/inline}}
The code should have looked like this after beautification:
The code actually looked like this after beautification:
Example:
{ "indent_handlebars": true }
The text was updated successfully, but these errors were encountered:
Inline Partials: https://handlebarsjs.com/guide/partials.html#inline-partials
This pattern recognizer is looking for {{# or {{^ which is fine...
{{#
{{^
https://github.com/beautify-web/js-beautify/blob/ae3e9e6b1c47487c72f92951333b2944dd5160b0/js/src/html/beautifier.js#L608-L609
but this this line thinks the name of the tag is *inline when it is actually inline. https://github.com/beautify-web/js-beautify/blob/ae3e9e6b1c47487c72f92951333b2944dd5160b0/js/src/html/beautifier.js#L618
*inline
inline
Should someone have time to fix this, they'll need to add a check for * and then add tests.
*
Sorry, something went wrong.
Add support for handlebars partials
5da10c0
Fixes beautifier#1756
4bc5fcc
Successfully merging a pull request may close this issue.
Input
The code looked like this before beautification:
Expected Output
The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
Steps to Reproduce
Settings
Example:
The text was updated successfully, but these errors were encountered: