I have problems converting an app to new layout structure, with root and app layout templates.
Previously I configured the layout in controller, so when page was rendered, the template @view_module had a view of current page rendered. Now with layout configured in plug the view is LayoutView.
So I cannot script includes depending on page rendered like:
<%= render_existing @view_module, “css.” <> @view_template, assigns %>
case current view_module is not of page rendered.
I can move everything in app.html template, but this misses the purpose of root template.
What I am doing wrong?