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 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

Pattern identifier used as the key for loader data and errors. Index routes are disambiguated from their parent.