Skip to content

Elixir library provides render EEx to MJML and MJML to HTML (eex -> mjml -> html)

License

Notifications You must be signed in to change notification settings

Elonsoft/mjmleex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mjmleex

Renders EEx to MJML and MJML to HTML (eex -> mjml -> html)

Installation

If available in Hex, the package can be installed by adding mjmleex to your list of dependencies in mix.exs:

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

Usage

  1. Install the MJML globally: npm install -g mjml
  2. Create template with *.mjml.eex extension
  3. Render the template: Mjmleex.render(PageView, "mail.mjml", %{name: 'John Smith'})
  4. Send recived html via email

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mjmleex.

About

Elixir library provides render EEx to MJML and MJML to HTML (eex -> mjml -> html)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages