Pauan / rust-dominator

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

Support generics in dom builder methods #62

Closed tqwewe closed 2 years ago

tqwewe commented 2 years ago

Previously, specifying generic types in methods with the html! and apply_methods! macros was not supported.

This PR adds support for these allowing you to do things such as:

html!("div", {
    .event::<dominator::events::MouseDown>(...)
})
Pauan commented 2 years ago

Thanks!