Pauan / rust-dominator

Zero-cost ultra-high-performance declarative DOM library using FRP signals for Rust!
MIT License
998 stars 63 forks source link

Feat: .attrs! #67

Closed dakom closed 7 months ago

dakom commented 2 years ago

@Pauan proposed the following:

.attrs!{ foo="bar", qux="corge" }

which would essentially be the same as

.attr("foo", "bar")
.attr("qux", "corge")

This simple macro would actually go a very long way to make dominator code more palatable to newcomers especially imho.

dakom commented 1 year ago

(ofc this could also apply to prop)

dakom commented 7 months ago

@Pauan - I think this was done in https://github.com/Pauan/rust-dominator/commit/b0ddb0e732d94d9ae8cd1f7b1dd0af7139103bec

Closing the issue, ofc feel free to re-open if I'm wrong about that