Struggling with live views generated by phx.gen.liveview - how do you work with layouts?

Hi All.

I really love Live View and the amazing possibilities it brings to the table. One small thing I do struggle with is the live views generated by using phx.gen.liveview. I don’t know if it is the fact that I’m used to a controller containing all the REST endpoints in a single file for a specifc resource but having Live View for Index/New and Show/Edit just seems odd. Not a show stopper at all but just wondered:

  • Is there a technical reason why the files are split out this way
  • Do people use a different layout in their applications, if so would you mind sharing what you do.

cheers

Dave