Skip to content

Elixir NIF bindings for the MJML Rust implementation (mrml)

License

Notifications You must be signed in to change notification settings

media-io/mjml_nif

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MJML (Rust NIFs for Elixir)

Hex version badge License badge

Native Implemented Function (NIF) bindings for the MJML Rust implementation (mrml).

Installation

The package can be installed by adding mjml to your list of dependencies in mix.exs:

def deps do
  [
    {:mjml, "~> 0.1.0"}
  ]
end

Usage

Transpile MJML templates to HTML with:

mjml = "<mjml>...</mjml>"
{:ok, html} = Mjml.to_html(mjml)

# For an invalid MJML template:
mjml = "something not MJML"
{:error, message} = Mjml.to_html(mjml)

License

Copyright (c) 2020, Paul Götze

This software is licensed under the MIT License.

About

Elixir NIF bindings for the MJML Rust implementation (mrml)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 90.5%
  • Rust 9.5%