the @view_template variable as accessed in the app.html layout of a 1.4 phoenix app contained the name of the template being rendered by the controller
in phoenix 1.5 I get root.html, the name of the new template, first in the chain, under a live setup
how to recover the name of the template being rendered (information needed in the root.html layout )?
The following assigns are reserved, and cannot be set directly:
@view_module - The view module being rendered
@view_template - The @view_module 's template being rendered
but when I serve a template mytemp.html from a controller Mycont @view_template does not contain mytemp but only root.html @view_modules contain LayoutView
previously in 1.4.6 we had @view_template mytemp.html and view_module MycontView
so how od you get the name of the template being rendered in @inner_view ? which should be mytemp.html ?
You could use the trick described in a comment about the phx-1.5-upgrade.md upgrade guide which gets :phoenix_template and :phoenix_view from conn.private.
For the @view_module and @view_template, use view_module(@conn) and view_template(@conn) instead. Note you will need to import view_template: 1 in your my_app_web.ex file under def view.