Chime.Router.Mail (Chime v0.1.0-dev)

Copy Markdown View Source

The addresses of the emails' links, mounted with chime_mail/2 (imported with Chime.Router) at the config's :mail_url: to unsubscribe (Chime.Unsubscribe), and to open a notification, which reads it (Chime.Links).

Summary

Functions

Mounts Chime.Router.Mail at path in a host router.

Functions

chime_mail(path, opts \\ [])

(macro)

Mounts Chime.Router.Mail at path in a host router.

import Chime.Router.Mail

scope "/" do
  pipe_through :browser
  chime_mail "/chime"
end

Options

  • :app_name (String.t/0) - The app's name, in the page's title and words ("the app").

Every mount also takes the options listed in PhoenixMountable, such as :as, :on_mount and :csp_nonce_assign_key.