From a7b23adb2632077c8e9be5f618108891cb3e2565 Mon Sep 17 00:00:00 2001 From: Bailey Date: Sun, 22 Feb 2026 17:23:59 +0100 Subject: [PATCH] Update root.sfce for newer Phoenix templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See diff below ``` git diff --cached -- lib/arw_web/components/layouts/root.html.heex lib/arw_web/components/layouts/root.sface | sed -e 's@arw@myapp@g' -e 's@Arw@MyApp@g' diff --git a/myapp/lib/myapp_web/components/layouts/root.html.heex b/myapp/lib/myapp_web/components/layouts/root.html.heex deleted file mode 100644 index ab9a72b..0000000 --- a/myapp/lib/myapp_web/components/layouts/root.html.heex +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - <.live_title default="MyApp" suffix=" · Phoenix Framework"> - {assigns[:page_title]} - - - - - - - {@inner_content} - - diff --git a/myapp/lib/myapp_web/components/layouts/root.sface b/myapp/lib/myapp_web/components/layouts/root.sface new file mode 100644 index 0000000..4f39c41 --- /dev/null +++ b/myapp/lib/myapp_web/components/layouts/root.sface @@ -0,0 +1,17 @@ + + + + + + + <.live_title suffix=" · Phoenix Framework"> + {assigns[:page_title] || "MyAppWeb"} + + + + + + {@inner_content} + + ``` --- priv/templates/surface.init/layouts/root.sface | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/priv/templates/surface.init/layouts/root.sface b/priv/templates/surface.init/layouts/root.sface index fd286744..d0fb6e92 100644 --- a/priv/templates/surface.init/layouts/root.sface +++ b/priv/templates/surface.init/layouts/root.sface @@ -7,8 +7,8 @@ <.live_title suffix=" · Phoenix Framework"> {assigns[:page_title] || "<%= web_module |> Module.split() |> List.last() %>"} - -