website/lib/layouts/post_layout.ex

10 lines
206 B
Elixir

defmodule Website.PostLayout do
use Tableau.Layout, layout: Website.RootLayout
use Phoenix.Component
def template(assigns) do
~H"""
<%= {:safe, render(@inner_content)} %>
"""
end
end