You can return a layout from mount/3
like so: {:ok, socket, layout: {module, atom}}
. You can also use live_session
to change the layout for a bunch of liveviews. No need to drop down to the macros to do that.
6 Likes