-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Handlebars support #660
Comments
My thread seems to be a duplicate: #801 |
+1 |
+1 !! |
Can I use js-beautify to format handlebars templates ? |
+1 |
Is it possible to get some guidance in moving this along? Where should I look in the code to possibly start fixing some of these problems and get a PR working? |
It's a little hard to nail down because the html beautifier doesn't parse the tags into tokens before formatting. This is the main loop. There are some special treatment of some handlebars tags but most of them are treated like regular tags. Not great. If you do a search for The best thing to do would be to get the html beautifier to parse all input separate from formatting, but that is a bigger effort. |
Hey,
I'm using your library in the sublime extension and was beginning to think whether there exists the possibility to add some custom parser for Handlebars? Because there are some specialities to using Handlebars (and in some time HTMLBars).
One example would be:
Should be formatted like this:
but the html-parser doesn't understand that syntax. That is understandable but I like that to change :)
The text was updated successfully, but these errors were encountered: