Function mt_dom::attr

source ·
pub fn attr<Ns, Att, Val>(name: Att, value: Val) -> Attribute<Ns, Att, Val>
where Ns: PartialEq + Clone + Debug, Att: PartialEq + Clone + Debug, Val: PartialEq + Clone + Debug,
Expand description

Create an attribute

§Example

use mt_dom::{Attribute,attr};
let class: Attribute<&'static str, &'static str, &'static str> =
    attr("class", "container");