Skip to content

Router

[Source]

Mutable builder for registering LiveView routes.

Register paths with their factories, then call build() to freeze the route table into an immutable Routes value that can be shared across actors.

class ref Router

Constructors

create

[Source]

new ref create()
: Router ref^

Returns


Public Functions

route

[Source]

Register a path with a factory that creates the LiveView for that route.

fun ref route(
  path: String val,
  factory: Factory val)
: None val

Parameters

Returns


build

[Source]

Freeze the route table into an immutable Routes value.

fun ref build()
: Routes val

Returns