I’m trying to render a template from different view modules and keep running into the error:
assign @site_info not available in eex template.
This is what I’ve come up with so far inside my AppWeb.StoreView:
<%= render AppWeb.SiteInfoView, "show.html", Map.put(assigns, :action, Routes.site_info_path(@conn, :show, @site_info)) %>
How do you go about getting information from different templates in other view modules?
https://hexdocs.pm/phoenix/views.html