MRML

Crates.io Crates.io FOSSA Status

.github/workflows/main.yml codecov

Average time to resolve an issue Percentage of issues still open Maintainability

Introduction

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

How to use it in my code

Update your cargo.toml:

toml [dependencies] mrml = "1.2" serde = { version = "1.0", features = ["derive"] }

Create your main.rs:

```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

Missing implementations

Who is using MRML?

If you are using MRML and want to be added to this list, don't hesitate to create an issue or open a pull request.

What is using MRML?

mjml_nif - Elixir library

mrml-ruby - Ruby library

mjml-python - Python library

If you are using MRML and want to be added to this list, don't hesitate to create an issue or open a pull request.

You want to sponsor us?

Buy Me A Coffee

Thanks to zachzurn.

License

FOSSA Status