Public API. Handlers return render or location responses, and
wrap-inertia turns them into HTML (first visit) or JSON (Inertia visits).
Public API. Handlers return `render` or `location` responses, and `wrap-inertia` turns them into HTML (first visit) or JSON (Inertia visits).
Builds the Inertia v3 page object from a Ring request and a set of props. Pure: no I/O beyond calling the prop fns that end up in the response.
Builds the Inertia v3 page object from a Ring request and a set of props. Pure: no I/O beyond calling the prop fns that end up in the response.
Prop types for Inertia v3 responses.
A prop value is either a plain value, a 0-arity fn (evaluated only when the
prop is included in the response), or a Prop built by the constructors
below. Constructors compose, so (merge (defer f)) is a deferred prop that
the client appends to once it arrives.
Prop types for Inertia v3 responses. A prop value is either a plain value, a 0-arity fn (evaluated only when the prop is included in the response), or a `Prop` built by the constructors below. Constructors compose, so `(merge (defer f))` is a deferred prop that the client appends to once it arrives.
Client for the Inertia SSR server (POST {url}/render). A failed render is
never fatal: the caller falls back to client-side rendering.
Client for the Inertia SSR server (`POST {url}/render`). A failed render is
never fatal: the caller falls back to client-side rendering.Helpers for testing apps that use inertia-clj, with no extra dependencies.
Helpers for testing apps that use inertia-clj, with no extra dependencies.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |