Function perseus::build::build_template[][src]

pub async fn build_template(
    template: Template<SsrNode>,
    config_manager: &impl ConfigManager
) -> Result<(Vec<String>, bool)>
Expand description

Builds a template, writing static data as appropriate. This should be used as part of a larger build process. This returns both a list of the extracted render options for this template (needed at request time), a list of pages that it explicitly generated, and a boolean as to whether or not it only generated a single page to occupy the template’s root path (true unless using using build-time path generation).