module

Kemal::Inertia

Constants

VERSION = "0.1.0"

Class methods

clear_shared_props
Source
config
Source
configure
Source
defer(group : String = "default", &block : -> _) : DeferredProp

Create a deferred prop that loads after initial render

Source
lazy

Backward compatibility alias

Source
optional(group : String = "default", &block : -> _) : DeferredProp

v3 alias for defer

Source
redirect(env : HTTP::Server::Context, location : String)
Source
render(env : HTTP::Server::Context, component : String, **props)

Render with named arguments

Source
render(env : HTTP::Server::Context, component : String, &block : -> Hash(String, _))

Render with block

Source
render_raw(env : HTTP::Server::Context, component : String, props : Hash(String, JSON::Any | DeferredProp))

Low-level render

Source
share(key : String, &block : HTTP::Server::Context -> _)
Source
share_csrf_token

Share CSRF token automatically via shared props. Requires Kemal session to be configured.

Source
shared_props(env : HTTP::Server::Context)
Source
validation_error(env : HTTP::Server::Context, errors : Hash(String, Array(String)))
Source
version
Source
version=(value : String)

Deprecated: backward compatibility

Source

Nested types