hamlet 0.2.1

Html token definitions for stream processing
Documentation
#[macro_export]
/// A convenience macro for `AttributeList` construction. It does not check for
/// duplicates in attribute names. Attribute names with hyphens should be
/// camel-cased.
///
/// # Example
///
/// ```rust
/// # #[macro_use] extern crate hamlet;
/// # fn main() {
/// let attrs = attrs!(dataFoo = "bar");
/// assert_eq!(attrs.get("data-foo"), Some("bar"));
/// # }
/// ```
macro_rules! attrs {
    () => {
        $crate::attr::AttributeList::empty()
    };
    ($($name:ident = $value:expr),+) => {
        $crate::attr::AttributeList::from_vec(vec![
            $($crate::attr::Attribute::new($crate::util::identifier_to_tag_name(stringify!($name)), $value)),+
        ])
    };
}