pub fn match_route<G: Html>(
    path_slice: &[&str],
    render_cfg: &HashMap<String, String>,
    templates: &TemplateMap<G>,
    locales: &Locales
) -> RouteVerdict<G>
Expand description

Matches the given path to a RouteVerdict. This takes a TemplateMap to match against, the render configuration to index, and it needs to know if i18n is being used. The path this takes should be raw, it may or may not have a locale, but should be split into segments by /, with empty ones having been removed.