defmodule RaxolWeb.Layouts do
use RaxolWeb, :html
embed_templates("layouts/*")
# Manual fallback for root template if embed_templates fails
def root(assigns) do
~H"""
Raxol
<%= if @flash[:info], do: Phoenix.HTML.raw(@flash[:info]) %>
<%= if @flash[:error], do: Phoenix.HTML.raw(@flash[:error]) %>
<%= @inner_content %>
"""
end
end