Routes

calico.router.Routes$package$.Routes$
object Routes

Attributes

Source
Routes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Routes.type

Members list

Type members

Classlikes

final class OneRouteBuilder[F[_]]

Attributes

Source
Routes.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_]](f: Uri => F[Option[Route[F]]]): Routes[F]

Attributes

Source
Routes.scala
def one[F[_]]: OneRouteBuilder[F]

Create a Routes for one "template". The matcher PartialFunction may extract some state A from the Uri that is communicated to the HtmlElement via a Signal. This enables the component to be re-used when the Uri changes but the same Route matches although the extracted state may differ.

Create a Routes for one "template". The matcher PartialFunction may extract some state A from the Uri that is communicated to the HtmlElement via a Signal. This enables the component to be re-used when the Uri changes but the same Route matches although the extracted state may differ.

Attributes

Source
Routes.scala

Givens

Givens

given given_Monoid_Routes[F[_]](using F: Applicative[F]): Monoid[Routes[F]]

Attributes

Source
Routes.scala

Extensions

Extensions

extension [F[_]](routes: Routes[F])(routes: Routes[F])
def apply(uri: Uri): F[Option[Route[F]]]

Attributes

Source
Routes.scala