MRML

Crates.io Crates.io

Build Status codecov

Maintainability

Introduction

This project is a reimplementation of the nice MJML markup language in Rust.

How to use it in the cli

```bash

installing mrml-cli

cargo install mrml-cli

using it

mrml-cli path/to/template.mjml validate mrml-cli path/to/template.mjml render mrml-cli path/to/template.mjml format-json --pretty mrml-cli path/to/template.json format-mjml --pretty

getting some help

mrml-cli --help ```

How to use it in my code

```rust use mrml;

fn main() { let root = mrml::parse("").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"), }; } ```

Why?

You want to contribute?

Feel free to read our contributing section and the code of conduct.

Performance

With the same linux amd64 machine, to render the amario template

To reproduce those results: