Router helpers for mounting the PhoenixDiagrams diagram browser in a host Phoenix application.
defmodule MyAppWeb.Router do
use MyAppWeb, :router
import PhoenixDiagrams.Router
scope "/" do
pipe_through :browser
live_phoenix_diagrams "/diagrams", diagrams_path: "priv/diagrams"
end
endPhoenixDiagrams renders on its own standalone page — it needs no changes to your
app.js, assets/, or esbuild config. Its LiveView client JS, Mermaid
and PlantUML rendering hooks are all served and bootstrapped
automatically via a dedicated root layout and asset route mounted
alongside the LiveView.
Summary
Functions
Mounts the PhoenixDiagrams diagram browser LiveView at path.