Skip to main content

prepare

Function prepare 

Source
pub fn prepare(
    template_path: &Path,
    ctx: &RenderCtx<'_>,
) -> Result<RenderedDocument, TemplateError>
Expand description

Prepare an unformatted rendered document.

ยงErrors

Returns an error if the template is not indexed as text or cannot be rendered.