Skip to content

Commit dc09c17

Browse files
committed
feat(temple): post layout
1 parent 2e876f1 commit dc09c17

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

priv/templates/heex/lib/layouts/post_layout.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule <%= @app_module %>.PostLayout do
44

55
def template(assigns) do
66
~H"""
7-
<%= {:safe, render(@inner_content)} %>
7+
<%%= {:safe, render(@inner_content)} %>
88
"""
99
end
1010
end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
defmodule <%= @app_module %>.PostLayout do
2+
use <%= @app_module %>.Component
3+
use Tableau.Layout, layout: <%= @app_module %>.RootLayout
4+
5+
def template(assigns) do
6+
temple do
7+
render(@inner_content)
8+
end
9+
end
10+
end
11+

0 commit comments

Comments
 (0)