API Reference PhoenixDatastar v#0.1.16

Copy Markdown View Source

Modules

PhoenixDatastar view behaviour for building interactive web applications.

Provides functions for generating Datastar action expressions.

Built-in HTML template for rendering the PhoenixDatastar mount wrapper.

Functions for patching and removing DOM elements via SSE.

Shared helper functions for PhoenixDatastar modules.

Global in-session navigation endpoint.

Controller for rendering the initial PhoenixDatastar page.

Plug for handling PhoenixDatastar requests.

Dynamic process registry for PhoenixDatastar GenServers.

Runtime route lookup helpers for PhoenixDatastar session-aware routing.

Router macros for PhoenixDatastar.

Server-Sent Event (SSE) generator for streaming updates to clients.

Executes JavaScript on the client via SSE.

GenServer for live PhoenixDatastar views.

Functions for reading and patching Datastar signals via SSE.

Socket struct for PhoenixDatastar, similar to Phoenix.LiveView.Socket. Holds the view module, session id, assigns, signals, private data, and queued events.

Global stream endpoint for Datastar live sessions.

Mix Tasks

Installs PhoenixDatastar into your Phoenix application.