API Reference mutare_phoenix_swoosh v#0.1.0

Copy Markdown View Source

Modules

Mutare mutators for the phoenix_swoosh template-rendering surface — the layer Phoenix.Swoosh adds on top of a Swoosh mailer.

:mail_layout — mutates the seam that decides which layout wraps the rendered body.

A marker Mutare.Phoenix.Swoosh injects for a mailer whose use Phoenix.Swoosh line configures a layout (layout: {LayoutView, :email}).

:render_body — mutates the calls that decide which body parts an email renders: Phoenix.Swoosh.render_body/2,3, the call that renders an email's templates onto its html_body/text_body fields, and the format map of Phoenix.Swoosh.put_new_formats/2, which decides what "both parts" even means. Three kinds, variant-labelled