View Source Inertia.Controller (Inertia v0.3.0)
Controller functions for rendering Inertia.js responses.
Summary
Functions
@spec assign_prop(Plug.Conn.t(), atom(), any()) :: Plug.Conn.t()
Assigns a prop value to the Inertia page data.
@spec render_inertia(Plug.Conn.t(), component :: String.t(), props :: map()) :: Plug.Conn.t()
Renders an Inertia response.