Packages

Multi-surface application runtime for Elixir. One TEA module renders to terminal, browser (LiveView), SSH, and MCP (agents). 30+ widgets, flexbox + CSS grid, AI agent runtime, distributed swarm with CRDTs, time-travel debugging, session recording, sandboxed REPL, and agentic commerce.

Current section

Files

Jump to
raxol lib raxol_web layouts.ex
Raw

lib/raxol_web/layouts.ex

defmodule RaxolWeb.Layouts do
use RaxolWeb, :html
embed_templates("layouts/*")
# Manual fallback for root template if embed_templates fails
def root(assigns) do
~H"""
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Raxol</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<%= if @flash[:info], do: Phoenix.HTML.raw(@flash[:info]) %>
<%= if @flash[:error], do: Phoenix.HTML.raw(@flash[:error]) %>
<%= @inner_content %>
</body>
</html>
"""
end
end