Skip to main content

resolve_path

Function resolve_path 

Source
pub fn resolve_path(
    path: &str,
    keys: &[String],
    entry: &str,
) -> (String, String)
Expand description

Resolve a requested path against the set of known page keys (each a .lmn filename stem), returning (page_key, segment).

match_path does the matching. What this adds is the fallback: a path no page answers for lands on entry with the whole requested path as the segment, so an app that wants to say “no such thing” can render that itself.