Mjmleex v0.1.0 Mjmleex View Source

Renders EEx to MJML and MJML to HTML

How to use:

  1. Install the MJML globally
  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

Link to this section Summary

Types

Template assigns

Html string

Phoenix view module wich contains email template

Email template name (like mail.mjml.eex)

Link to this section Types

Specs

assigns() :: map()

Template assigns

Specs

html() :: String.t()

Html string

Specs

view_module() :: module()

Phoenix view module wich contains email template

Specs

view_template() :: String.t()

Email template name (like mail.mjml.eex)

Link to this section Functions

Link to this function

render(module, template, assigns \\ %{})

View Source

Specs

render(view_module(), view_template(), assigns()) :: html()