chinedufn / percy

Build frontend browser apps with Rust + WebAssembly. Supports server side rendering.
https://chinedufn.github.io/percy/
Apache License 2.0
2.25k stars 84 forks source link

`html!` macro support hyphens in attributes #199

Closed chinedufn closed 1 month ago

chinedufn commented 1 month ago

This commit makes it possible to use hyphenated attribute names when creating elements using the html! macro.

For example, the following is now possible:

html! {
<svg
  xmlns="http://www.w3.org/2000/svg"
  stroke-width="1.5"
  // ...
>
  // ...
</svg>
}

Before this commit trying to add a "stroke-width" attribute would have led to a compile time error.

chinedufn commented 1 month ago

Published

html-macro = "0.2.3"

OR

percy-dom = "0.9.7"