-
Notifications
You must be signed in to change notification settings - Fork 69
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
Template autoformatting at buildtime #209
Comments
@nedtwigg in theorie yes, you could give it a try. For jte parts it should work, but I'm unsure how to format the underlying language (for instance HTML/JS/CSS). The |
Fine to close this if you don't want it implemented, but I've had good luck on some of my projects leaving a seemingly-hopeless feature request open, and eventually somebody comes along and implements it. Canonical formatting has become mainstream ( |
If the template is being used in plain text mode it could be rendering anything. You can't generalise format in that case. |
True, but HTML is common enough that |
I don't have time to work on it, but will leave it open as @nedtwigg suggested. |
I hoped to add a
jte
section to Spotless.But it looks like the formatter is tied pretty intimately to IntelliJ
It seems like it would be possible to make a pretty-printer by implementing a
TemplateParserVisitor
which implements all the callbacks by appending to a big String.Any thoughts?
The text was updated successfully, but these errors were encountered: