load_toml_template_from_path

Function load_toml_template_from_path 

Source
pub fn load_toml_template_from_path<TE, C>(
    engine: TE,
    path: PathBuf,
    ctx: &C,
) -> impl Future<Item = Template<TE>, Error = Error>
where TE: TemplateEngine + 'static, C: Context,
Expand description

Load a template as described in a toml file.

This will set the default of the base_dir to the dir the template file loaded is in.