Closed chinedufn closed 5 years ago
This PR makes it much easier to interpolate text variables into your HTML.
let my_text = "hello world"; html! { <div> { text!(my_text) } </div> }
let my_text = "hello world"; html! { <div> { my_text } </div> }
Needing a macro for such a common thing was a poor experience
Published!
virtual-dom-rs = "0.6.5"
Cool!
What
This PR makes it much easier to interpolate text variables into your HTML.
Before (bad)
After (good)
Why
Needing a macro for such a common thing was a poor experience