Skip to main content

page

Function page 

Source
pub fn page(
    path: &str,
    scope: &ServedFolder,
    entry: &Path,
) -> Option<(Live, String, PathBuf)>
Expand description

The page of an extension path names in scope, pages/<page> under the extension’s address: what answers it, asked for pages/<page>; the page, as its extension names it; and the file of the document it is drawn in — entry when that document binds the extension, else the first that does. None when path is no extension’s page.