Skip to content

crelte / routing

crelte

Classes

ClassDescription
BaseRouteA Route contains information about the current page for example the url and the site
RequestA Request is a Route with some extra options you get a Request from the onRequest event or in a loadGlobal function.
RouteA Route contains information about the current page for example the url, the site and its entry.
RouterThe Crelte Router
SiteA Craft Site

Interfaces

InterfaceDescription
TemplateModule-

Type Aliases

Type AliasDescription
BaseRouteOptions-
DelayRenderDelayRender is returned by Request.delayRender
RequestOptionsOptions to create a Request
RouteOptions-
RouteOriginRouteOrigin represents the origin of a route. This type is non-exhaustive and might expand in the future.
SiteFromGraphQl-
UpdateRequestAllows to easely modify a Request

Functions

FunctionDescription
shouldInterceptClickReturns true if the click should be intercepted