Skip to main content

reverse

Function reverse 

Source
pub fn reverse(
    routes: &[RouteSpec],
    name: &str,
    captures: &HashMap<String, String>,
) -> Option<String>
Expand description

Reverse a named route into the URL suffix below the page’s url_path. Returns None when no route has name or its pattern isn’t reversible (see reverse_pattern). Combine the suffix with the page’s url_path for a full URL — the routable_url() Tera function does exactly that.