Use explicit Phoenix 1.8 style layouts

This commit is contained in:
Claudio Ortolina
2025-09-21 21:11:17 +03:00
parent 0071d45998
commit 64cb917a4e
11 changed files with 1907 additions and 1882 deletions
+2 -2
View File
@@ -62,8 +62,7 @@ defmodule MusicLibraryWeb do
def live_view do
quote do
use Phoenix.LiveView,
layout: {MusicLibraryWeb.Layouts, :app}
use Phoenix.LiveView
unquote(html_helpers())
end
@@ -102,6 +101,7 @@ defmodule MusicLibraryWeb do
# HTML escaping functionality
import Phoenix.HTML
alias MusicLibraryWeb.Layouts
# Shortcut for generating JS commands
alias Phoenix.LiveView.JS