Accrue.Portal.Router (accrue_portal v1.1.2)

Copy Markdown View Source

Router helpers for mounting the :accrue_portal package into a host app.

Summary

Functions

accrue_portal(path, opts \\ [])

(macro)

Mounts the portal package at path.

Options

  • :session_keys - explicit host session keys to thread into the portal LiveView session
  • :on_mount - additional LiveView on_mount hooks

assets_path(kind, mount_path)

@spec assets_path(:css | :js, String.t()) :: String.t()