Table of Contents

Class RouteMatch

Namespace
Velvet
Assembly
Velvet.Docs.dll

One level in a parent-first route matching result.

public sealed class RouteMatch
Inheritance
object
RouteMatch

Properties

MatchedPath

The route's pattern without surrounding slashes; root remains /.

Params

Parameters captured across the full matched branch, shared by every level. A :id segment keys its capture as id, and a splat as *.

PathnameBase

Cumulative rooted pathname, spelled as the URL spells it, used for route-relative navigation. A .. removes this route level's contribution, which may span multiple URL segments. Defaults to / for hand-built matches.

Route
RouteId

The route's Id, or its position in the tree when it has none. Unique among a tree's routes, and the key of loader data, action data and errors.