The code example explicitly adds a layout to the live session used for WrongLive
:
root_layout: {PentoWeb.LayoutView, :root},
This message is displayed when the web page is rendered:
no “root” html template defined for PentoWeb.LayoutView (the module does not exist)
The code example on page 49 shows a different module name, Layouts
.
pipeline :browser do
...
plug :put_root_layout, {PentoWeb.Layouts, :root}
...
end
The web page renders without error after changing LayoutView
to Layouts
:
root_layout: {PentoWeb.Layouts, :root},