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");