Function perseus::serve::get_page[][src]

pub async fn get_page(
    path: &str,
    req: Request,
    render_cfg: &HashMap<String, String>,
    templates: &TemplateMap<SsrNode>,
    config_manager: &impl ConfigManager
) -> Result<PageData>
Expand description

Gets the HTML/JSON data for the given page path. This will call SSG/SSR/etc., whatever is needed for that page. Note that HTML generated at request-time will always replace anything generated at build-time, incrementally, revalidated, etc.