API Reference PhoenixDatastar v#0.1.12

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.

Shared helper functions for PhoenixDatastar modules.

Controller for rendering the initial PhoenixDatastar page.

Plug for handling PhoenixDatastar requests.

Dynamic process registry for PhoenixDatastar GenServers.

Router macros for PhoenixDatastar.

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

Functions for executing JavaScript on the client.

GenServer for live PhoenixDatastar views.

Functions for reading and patching Datastar signals.

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

Mix Tasks

Installs PhoenixDatastar into your Phoenix application.