Hi!
I want to use other layout “hoge.html.heex” on live view.
The following code works as expected!
# view
use Phoenix.LiveView, layout: {HogeAppWeb.Other.LayoutView, "live.html"}
But the following code doesn’t work as expected.
# view
use HogeAppWeb, :live_view
# router.ex
pipeline :hoge do
plug(:put_layout, {HogeAppWeb.Other.LayoutView, "live.html"})
end
scope "/", HogeAppWeb do
pipe_through([:hoge])
live("/articles", ArticleLive.Index, :index)
end
Is there any way?