mrml 6.0.1

Rust implementation of MJML renderer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(test)]
mod tests {
    use crate::prelude::print::Printable;

    #[test]
    fn empty() {
        let mut item = crate::mj_divider::MjDivider::default();
        item.attributes
            .insert("src".to_string(), Some("http://localhost".into()));
        assert_eq!(
            "<mj-divider src=\"http://localhost\" />",
            item.print_dense().unwrap()
        );
    }
}