defmodule Bloccs.Web.Layouts do @moduledoc """ Self-contained root and app layouts for the dashboard. The dashboard ships its own precompiled CSS/JS from `priv/static` (served by a dashboard-owned static route), so these layouts never depend on the host's assets or layout. """ use Bloccs.Web, :html @doc "The HTML document shell. Pulls in the dashboard's own precompiled assets." attr :inner_content, :any, required: true attr :page_title, :string, default: "bloccs" def root(assigns) do ~H""" {assigns[:page_title] || "bloccs"} {@inner_content} """ end @doc "The per-page wrapper inside the live_session." attr :flash, :map, default: %{} attr :inner_content, :any, required: true def app(assigns) do ~H"""
{@inner_content}
""" end end