Function class

Source
pub fn class<'a>(classes: impl IntoIterator<Item = &'a str>) -> Attribute
Expand description

class attribute

It takes a list of clases and join them together

ยงExample


assert_eq!(
  class(["foo", "bar", "baz"]).to_string(),
  r#"class="foo bar baz""#,
);