I haven’t used phoenix for some time and the new layouts confuse me:
From what I remember before, there was the
live.html.heex that would be generated for liveview components, however it is not clear on how it works now, because the content from
app.html.heex is rendered in dead views too.
Can someone explain how this works currently?
All the functionality, which previously required a separate live.html and app.html template was updated with functionality, which works for both codepaths (mostly flash message handling). So there’s simply no longer a need for those separte layout files.
So basically adding live functionality in root files is out of the question currently, or I am missing something?
Yes. Always has been. The root layout doesn’t include live things, the layout can …
This is exactly what I was looking for, thanks!