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

pub async fn get_page(
    raw_path: &str,
    locale: &str,
    __arg2: (&str, bool),
    req: Request,
    templates: &TemplateMap<SsrNode>,
    __arg5: (&ImmutableStore, &impl MutableStore),
    translations_manager: &impl TranslationsManager
) -> Result<PageData, ServerError>
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.