Caravela.Gen.AuthLive (Caravela v0.13.0)

Copy Markdown View Source

Generates Phoenix LiveView pages that mount the auth Svelte components produced by Caravela.Gen.AuthSvelte.

Emits, under lib/<web>/live/[v<N>/]auth_live/:

  • login.ex, register.ex, confirm_email.ex, session_list.ex
  • reset_password.ex — only when reset :password is set
  • token_manager.ex — only when :api_token strategy is set

Returns a list of {path, source} tuples. Files preserve content below the # --- CUSTOM --- marker on regeneration.

Summary

Functions

Render every auth LiveView module relevant to the domain.

Render a single auth LiveView page by name + template.

Functions

render_all(domain, opts \\ [])

Render every auth LiveView module relevant to the domain.

render_page(domain, name, template, opts \\ [])

Render a single auth LiveView page by name + template.