Connects Rekindle's Web artifacts to a Phoenix endpoint.
The installer adds the development endpoint plug, static delivery, and the
selected plugin's Web shell and module script to the Phoenix root
layout.
web_entry_path/1 selects the development runtime while code reloading is
enabled and resolves the production entry module through the application's
Phoenix static-path implementation otherwise. web_host/1 and web_style/1
supply the plugin-owned shell when a custom layout needs it.
Summary
Functions
Returns the Web entry module path for a Phoenix endpoint.
Returns the Web host markup declared by a plugin.
Returns the Web shell CSS declared by a plugin.
Types
@type plugin() :: Rekindle.Plugin.configured()
Functions
Returns the Web entry module path for a Phoenix endpoint.
During code-reloading development, loading this path as a JavaScript module
starts the current development generation and follows successful rebuilds.
Otherwise it starts the immutable generation selected by
mix rekindle.build web --release.
Returns the Web host markup declared by a plugin.
GPUI does not require a host element. The built-in egui and Slint plugins
return their required canvas elements. Applications can render markup from a
trusted configured plugin with Phoenix.HTML.raw/1.
Returns the Web shell CSS declared by a plugin.
The generated Phoenix layout places this CSS in its document head so the browser target occupies the same application surface as its desktop target.