Skip to main content

load_template

Function load_template 

Source
pub fn load_template(dir: &Path, name: &str) -> Result<Template, TemplateError>
Expand description

Load a named template from a directory.

Looks for <name>.tmpl.md in dir.

ยงErrors

Returns TemplateError::Io if the file is not found or cannot be read.