View Source API Reference MJML EEx v0.10.0
Modules
Documentation for MjmlEEx
template module. This moule contains the macro
that is used to create an MJML EEx template. The macro can be configured to
render the MJML template in a few different ways, so be sure to read the
option documentation.
This module defines the behaviour that all compiler implementations need to adhere to.
This module implements the MjmlEEx.Compiler
behaviour
and allows you to compile your MJML templates using the Node
CLI tool. This compiler expects you to have the mjml
Node
script accessible from the running environment.
This module implements the MjmlEEx.Compiler
behaviour
and allows you to compile your MJML templates using the Rust
NIF (https://hexdocs.pm/mjml/readme.html).
This module allows you to define a reusable MJML component that can be injected into
an MJML template prior to it being rendered into HTML. There are two different ways
that components can be rendered in templates. The first being render_static_component
and the other being render_dynamic_component
. render_static_component
should be used
to render the component when the data provided to the component is known at compile time.
If you want to dynamically render a component (make sure that the template is set to
mode: :runtime
) with assigns that are passed to the template, then use
render_dynamic_component
.
This Engine is used to compile the MJML template.
This module allows you to define an MJML layout so that you
can create reusable email skeletons. To use layouts with your
MJML emails, create a layout template that contains an
<%= @inner_content %>
expression in it like so
Telemetry integration for event metrics, logging and error reporting.
General MJML EEx utils reside here for encoding and decoding Elixir expressions in MJML EEx templates.