Skip to main content

match_single_route

Function match_single_route 

Source
pub fn match_single_route(
    template: &str,
    request_path: &str,
    exact: bool,
) -> Option<RouteMatch>
Expand description

Match a single route template against a request path.

Returns Some(RouteMatch) if the path matches, None otherwise. Used by the SSR route pruning to check individual <f-route> elements.