Skip to content

Commit

Permalink
Mention layouts without formats are soft-deprecated (#5571)
Browse files Browse the repository at this point in the history
  • Loading branch information
esse authored Sep 14, 2023
1 parent a7928ea commit 039fa1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/phoenix/controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,7 @@ defmodule Phoenix.Controller do
put_layout(conn, #{inspect(good_value)})
In this case, the layout without format will always win.
Passing the layout without a format is currently soft-deprecated.
If you use layouts with formats, make sure that they are
used everywhere. Also remember to configure your controller
to use layouts with formats:
Expand Down

0 comments on commit 039fa1c

Please sign in to comment.