axum-live-view
axum-live-view copied to clipboard
Fix html node literal attributes not being quoted properly
trafficstars
This fixes an issue where something like html!{ <div class="abc def"></div> } would result in this html: <div class=abc def></div> because LitStr eats the quotes during parsing.
This simply adds them back during node_to_tokens.
I've fixed the CI error in https://github.com/davidpdrsn/axum-live-view/pull/160 so if you rebase main it should pass.
I've fixed the tests which I feel adequately cover this change. Fixing this the proper way and putting quotes around all evaluated output is a huge hassle and I'm not getting nerd sniped into doing that.... for now... 😛