View Source Pow.Phoenix.Mailer.Template (Pow v1.0.38)
Module that builds mailer templates for Phoenix templates using EEx with
Phoenix.HTML.Engine
.
Usage
defmodule PowExtension.Phoenix.Mailer.MailTemplate do
use Pow.Phoenix.Mailer.Template
template :mail, "Subject line", "Text content", "<p>HTML content</p>"
end
Summary
Functions
Generate template functions.
Functions
Generate template functions.
This macro that will compile a mailer template from the provided binaries,
and add the compiled versions to render/2
functions. The text/1
and
html/1
outputs the binaries. A subject/1
function will be added too.