Function perseus::build::build_template [−][src]
pub async fn build_template(
template: &Template<SsrNode>,
translator: Rc<Translator>,
__arg2: (&ImmutableStore, &impl MutableStore),
exporting: bool
) -> Result<(Vec<String>, bool), ServerError>
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).