Pow v0.1.0-alpha Pow.Phoenix.Mailer.Template View Source
Module that can builds mailer templates for Phoenix views using EEx with Phoenix.HTML.Engine.
Example:
defmodule MyAppWeb.Mailer.MailTemplate do
use Pow.Phoenix.Mailer.Template
template :mail, "Subject line", "Text content", "<p>HTML content</p>"
end
MyAppWeb.Mailer.MailTemplate.render(“mail.html”, assigns)