defmodule Website.RootLayout do
use Tableau.Layout
use Phoenix.Component
def template(assigns) do
~H"""
<%= [@page[:title], "Criminally Cute"]
|> Enum.filter(& &1)
|> Enum.intersperse("|")
|> Enum.join(" ") %>
<%= render(@inner_content) %>
<%= if Mix.env() == :dev do %>
<%= Phoenix.HTML.raw(Tableau.live_reload(assigns)) %>
<% end %>
"""
|> Phoenix.HTML.Safe.to_iodata()
end
end