SelectoMix.LiveViewGenerator (selecto_mix v0.4.7)

Generates LiveView file paths and templates for Selecto domains.

Summary

Functions

live_view_file_path(app_name, source)

live_view_html_file_path(app_name, source)

render_live_view_html_template(source, opts)

render_live_view_template(app_name, source, domain_module, opts, components_source_path)

route_suggestion(source, opts)

runtime_connection_guidance(app_name, opts)

Renders setup guidance for the runtime connection used by a DB-backed generated LiveView.

runtime_connection_name(app_name, opts)

Returns the named runtime connection expected by a DB-backed generated LiveView.

--database-url and the other connection flags are used only by the generator while it introspects the database. The host application must supervise its runtime connection under this name.

source_live_name(source)