mrml 6.0.0

Rust implementation of MJML renderer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(feature = "json")]
mod json;
#[cfg(feature = "print")]
mod print;
#[cfg(feature = "render")]
mod render;

pub type Node<T> = crate::prelude::Component<String, crate::prelude::AttributeMap, Vec<T>>;

impl<N: Into<String>, T> From<N> for Node<T> {
    fn from(tag: N) -> Self {
        Self {
            tag: tag.into(),
            attributes: crate::prelude::AttributeMap::new(),
            children: Vec::new(),
        }
    }
}