Module mrml::mj_accordion

source ·
Expand description

Module containing the mj-accordion element as defined in the documentation.

let template = include_str!("../../resources/compare/success/mj-accordion.mjml");
let root = mrml::parse(template).expect("parse template");
let opts = mrml::prelude::render::Options::default();
match root.render(&opts) {
    Ok(content) => println!("{content}"),
    Err(_) => println!("couldn't render mjml template"),
};

Structs§

Enums§

Constants§