Search code examples
phoenix-framework

Where is app.html.eex layout specified in Phoenix?


The default Phoenix project has app.html.eex and root.html.leex. In the routing file, I see plug :put_root_layout, {RoveWeb.LayoutView, :root} which specifies the root layout. However, I don't see anything similar for the app.html.eex layout. Is that explicitly defined anywhere, or is there a Phoenix default which automatically renders app.html.eex as a layout?


Solution

  • Yes, app.html.eex is the default application layout when you're not using LiveView.

    More info here