From 308bafb8ccdc49b1c712abc3708341f1d345287f Mon Sep 17 00:00:00 2001 From: Evan Travers Date: Fri, 29 Aug 2025 08:54:40 -0500 Subject: [PATCH 1/2] docs(layout): change `use` and illustrate While reading the docs, it seemed weird that the docs for Tableau.Layout was using the `use Tableau.Page` illustration from Page. I _think_ it's just a copypasta error, and this is what you were intending to show? --- lib/tableau/layout.ex | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/lib/tableau/layout.ex b/lib/tableau/layout.ex index c3765fa..6df7f5f 100644 --- a/lib/tableau/layout.ex +++ b/lib/tableau/layout.ex @@ -6,19 +6,20 @@ defmodule Tableau.Layout do ```elixir defmodule MySite.SidebarLayout do - use Tableau.Page, - layout: MySite.RootLayout + use Tableau.Layout def template(assigns) do """ - - -

- <%= render @inner_content %> -

+
""" end end From 93e3450f42d8cd899abec518a09401a65df04f8e Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Fri, 29 Aug 2025 10:07:44 -0400 Subject: [PATCH 2/2] Update layout.ex --- lib/tableau/layout.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tableau/layout.ex b/lib/tableau/layout.ex index 6df7f5f..4b1a111 100644 --- a/lib/tableau/layout.ex +++ b/lib/tableau/layout.ex @@ -6,7 +6,7 @@ defmodule Tableau.Layout do ```elixir defmodule MySite.SidebarLayout do - use Tableau.Layout + use Tableau.Layout, layout: MySite.RootLayout def template(assigns) do """