WIth the newer Phoenix.View 1.0.0, is there a way to access this information?
From the doc and the source, it looks like this has to be repeated explicitly now anyone knows why?
# now we need some extra lines...
Phoenix.View.render(SomeModule, "some_template", assigns
|> Keyword.merge(
view_module: SomeModule,
view_template: "some_template"
))
Those functions have been moved to Phoenix.Controller.view_module/view_template. The reason is because those concepts are not very clear (or very useful) in some abstractions like LiveView, so we realized it belongs upstream. I believe it was properly deprecated and there should be CHANGELOG entries. If you are not rendering from the controller, then you have to set it yourself.
Thanks. I wish I understood better, it still seems quite strange to me that an explicit call to Phoenix.View.render wouldn’t pass along the relevant information to the layout, and this seems quite remote from LiveView.