Skip to content

Commit 487e17d

Browse files
authored
docs(layout): change use and illustrate (#151)
1 parent fac9b67 commit 487e17d

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

lib/tableau/layout.ex

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@ defmodule Tableau.Layout do
66
77
```elixir
88
defmodule MySite.SidebarLayout do
9-
use Tableau.Page,
10-
layout: MySite.RootLayout
9+
use Tableau.Layout, layout: MySite.RootLayout
1110
1211
def template(assigns) do
1312
"""
14-
<nav>
15-
<a href="/home">
16-
<a href="/about">
17-
</nav>
18-
19-
<p>
20-
<%= render @inner_content %>
21-
</p>
13+
<aside>
14+
<nav>
15+
<a href="/home">
16+
<a href="/about">
17+
</nav>
18+
19+
<p>
20+
<%= render @inner_content %>
21+
</p>
22+
</aside>
2223
"""
2324
end
2425
end

0 commit comments

Comments
 (0)