MRML

Build Status codecov

Introduction

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

How to use it

```rust use mrml;

fn main() { match mrml::tohtml("", mrml::Options::default()) { Ok(content) => println!("{}", content), Err() => println!("couldn't convert mjml template"), }; } ```

Why?

Performance

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

To reproduce those results:

With a web server, as of today, on a mac book pro from 2017. (Old result) | | Rust | Node | | ---------------------- | ------ | -------- | | Requests per seconds | 520.50 | 272.61 | | CPU usage at boot time | 0.20% | 1.74% | | CPU usage under bench | 49.81% | 136.83% | | RAM usage at boot time | 1.12MB | 17.27MB | | RAM usage under bench | 2.85MB | 128.32MB | | Docker image size | 77.3MB | 178MB |