Phoenix.Swoosh.put_layout

You're seeing just the function put_layout, go back to Phoenix.Swoosh module for more information.
Link to this function

put_layout(email, layout)

View Source

Stores the layout for rendering.

The layout must be a tuple, specifying the layout view and the layout name, or false. In case a previous layout is set, put_layout also accepts the layout name to be given as a string or as an atom. If a string, it must contain the format. Passing an atom means the layout format will be found at rendering time, similar to the template in render_body/3. It can also be set to false. In this case, no layout would be used.

Examples

iex> layout(email)
false

iex> email = put_layout email, {LayoutView, "email.html"}
iex> layout(email)
{LayoutView, "email.html"}

iex> email = put_layout email, "email.html"
iex> layout(email)
{LayoutView, "email.html"}

iex> email = put_layout email, :email
iex> layout(email)
{AppView, :email}