Bind an URL path parameter.
Bind an URL path parameter.
Parameter key
The value as String (extracted from the URL path)
Right of the value or Left of an error message if the binding failed
Unbind a URL path parameter.
Unbind a URL path parameter.
Parameter key
Parameter value.
Javascript function to unbind in the Javascript router.
Transform this PathBinding[A] to PathBinding[B]
Binder for URL path parameters.
You can provide an implementation of
PathBindable[A]for any typeAyou want to be able to bind directly from the request path.For example, given this class definition:
You can define a binder retrieving a
Userinstance from its id, useable like the following:The definition of binder can look like the following: