In the LiveView 0.18.3 guides at Live layouts — Phoenix LiveView v0.18.3, a “templates/layout” directory is mentioned. However, the Phoenix 1.7.0 version of the “phx.new” command doesn’t create this directory structure. Should it?
No, it creates them elsewhere, adds a file and does the
put_root_layout differently. Those docs will need to be updated after 1.7 is released.
I found this useful in eliminating the “dead views” and the old directory structure around views/templates …
Also, as a newbie, I find the fullstackphoenix codebase immensely useful as a reference for well written/structured code. It is up to date following the latest Phoenix 1.7-rc0 standard.