[−][src]Function mail_template::load_toml_template_from_path
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,
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.