Rekindle.Phoenix (Rekindle v0.1.0)

Copy Markdown View Source

Connects Rekindle's Web artifacts to a Phoenix endpoint.

The installer adds the development endpoint plug and static delivery. In production, web_entry_path/1 resolves the Web entry module through the application's Phoenix static-path implementation. web_host/1 supplies the host markup required by the selected UI integration.

Summary

Functions

Returns the Phoenix static path for the Web entry module.

Returns the trusted Web host markup for a built-in integration.

Types

integration()

@type integration() :: :gpui | :egui | :slint

Functions

web_entry_path(endpoint)

@spec web_entry_path(module()) :: String.t()

Returns the Phoenix static path for the Web entry module.

Loading the returned path as a JavaScript module starts the immutable generation selected by mix rekindle.build web --release.

web_host(integration)

@spec web_host(integration()) :: String.t()

Returns the trusted Web host markup for a built-in integration.

GPUI does not require a host element. egui and Slint return their required canvas elements. The returned markup is fixed by Rekindle and can be rendered with Phoenix.HTML.raw/1.