Phoenix.Controller.put_layout/2

Parsed documentation:
View on GitHub
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/3`. It can also be set to `false`. In this case, no layout
would be used.

## Examples

    iex> layout(conn)
    false

    iex> conn = put_layout conn, {AppView, "application.html"}
    iex> layout(conn)
    {AppView, "application.html"}

    iex> conn = put_layout conn, "print.html"
    iex> layout(conn)
    {AppView, "print.html"}

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

Raises `Plug.Conn.AlreadySentError` if `conn` is already sent.
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.