[][src]Function sauron::html::attributes::classes

pub fn classes<C, V, MSG>(class_list: C) -> Attribute<MSG> where
    V: ToString,
    C: AsRef<[V]>, 

a helper function to add multiple classes to a node

This example is not tested
   div(vec![classes(["dashed", "error"])], vec![])