Generates Phoenix LiveView modules that mount Svelte components via LiveSvelte.
Output per entity (:books):
index.ex— list + delete + navigate-to-editshow.ex— single-record viewform.ex— create + edit, with validate round-trips
Every LiveView delegates to the context module generated by
Caravela.Gen.Context, so authorization, hooks, and (when enabled)
tenant scoping apply automatically. The frontend (the Svelte
component) receives props reflecting the socket assigns and sends
events back via LiveSvelte's pushEvent.
Returns a list of {path, source} tuples. Files preserve content
below the # --- CUSTOM --- marker on regeneration.
Summary
Functions
Render every LiveView for every entity.
Render a single LiveView. kind is :index, :show, or :form.
Render the *_domain.ex companion module for an entity.
Functions
Render every LiveView for every entity.
Options:
:root— project root for reading existing files (CUSTOM merge):with_domain— whentrue, also emit aCaravela.Live.Domainmodule per entity and render the form LiveView from the Template-backed variant. Index and show stay plain regardless.
Render a single LiveView. kind is :index, :show, or :form.
Render the *_domain.ex companion module for an entity.