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)

Link to this section Summary

Link to this section Functions

Link to this macro template(action, subject, text, html) View Source (macro)
template(atom(), binary(), binary(), binary()) :: Macro.t()