seed-rs / seed

A Rust framework for creating web apps
MIT License
3.81k stars 155 forks source link

Support for raw attributes #592

Closed fxdave closed 3 years ago

fxdave commented 3 years ago

Can you please add support for raw attributes?

example:

At::raw("disabled", None); // <el disabled>
At::raw("data-id", Some("12")); //  <el data-id="12">
fxdave commented 3 years ago

There is already this:

At::Custom(Cow::from("data-id")) => 12,
MartinKavik commented 3 years ago

At::from("data-id") => 12 should work, too