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

Formatting html! macro invocation #263

Closed
diegopy opened this issue Mar 7, 2021 · 3 comments
Closed

Formatting html! macro invocation #263

diegopy opened this issue Mar 7, 2021 · 3 comments
Labels

Comments

@diegopy
Copy link

diegopy commented Mar 7, 2021

Is there any way to automatically format uses of the html! macro? rustfmt ignores it, and I'm not sure it would do a good job in any case.
Thanks!

@lambda-fairy
Copy link
Owner

I'm not aware of one. Rustfmt macro support has been a feature request for a long time (see rust-lang/rustfmt#8, rust-lang/rustfmt#3705) without any movement in that space.

@lambda-fairy
Copy link
Owner

Closing this as I don't think we can action this from the Maud side. Feel free to reopen if you have any concerns!

@maxcountryman
Copy link
Contributor

I've been wondering about this too as I'm using maud more: it's difficult and imprecise to do by hand and yet it's crucial for readability even with excellent abstractions with techniques like partials.

It actually seems pretty challenging for rustfmt to tackle (altho I agree that would be nice more generally) because macro syntax varies from valid Rust code.

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

No branches or pull requests

3 participants