Current section
Files
Jump to
Current section
Files
README.md
# MJML (Rust NIFs for Elixir)[](https://hex.pm/packages/mjml)[](https://github.com/paulgoetze/mjml/blob/main/LICENSE.md)Native Implemented Function (NIF) bindings for the [MJML](https://mjml.io) Rust implementation ([mrml](https://github.com/jdrouet/mrml)).## InstallationThe package can be installed by adding `mjml` to your list of dependencies in `mix.exs`:```elixirdef deps do [ {:mjml, "~> 0.1.0"} ]end```## UsageTranspile MJML templates to HTML with: ```elixirmjml = "<mjml>...</mjml>"{:ok, html} = Mjml.to_html(mjml)# For an invalid MJML template:mjml = "something not MJML"{:error, message} = Mjml.to_html(mjml)```## LicenseCopyright (c) 2020, Paul GötzeThis software is licensed under the [MIT License](https://github.com/paulgoetze/mjml_nif/blob/main/LICENSE.md).