Hi, I’m new to Phoenix and Elixir and I’m still a bit confused on how I load views/templates into each other. Where I can have shared components.
I have my main layout “app.html.eex” which loads the correct template via <%= render @view_module, @view_template, assigns %> which is great and is loaded via the controller and router but I would like to have a global nav bar and footer that can be used across my public pages.
(Phoenix.Template.UndefinedError) Could not render “_header.html” for MagnifyWeb.LayoutView, please define a matching clause for render/2 or define a template at “lib/magnify_web/templates/layout”. The following templates were compiled: