pub fn add_template_files<P: AsRef<Path>>(
        &mut self,
        files: Vec<(P, Option<&str>)>,
    ) -> Result<()> {
        for (path, name) in files {
            self.add_file(name, path)?;
        }
        self.build_inheritance_chains()?;
        self.check_macro_files()?;
        Ok(())
    }
/// Add several templates from paths to the Tera instance. The default name for the template is
/// the path given, but this can be renamed with the second parameter of the tuple
///
/// This will error if the inheritance chain can't be built, such as adding a child
/// template without the parent one.
///
/// ```rust,ignore
/// tera.add_template_files(vec![
///     (path1, None), // this template will have the value of path1 as name
///     (path2, Some("hey")), // this template will have `hey` as name
/// ]);
/// ```
Add several templates from paths to the Tera instance. The default name for the template is
the path given, but this can be renamed with the second parameter of the tuple

This will error if the inheritance chain can't be built, such as adding a child
template without the parent one.


Add several templates from paths to the Tera instance . The default name for the template is the path given but this can be renamed with the second parameter of the tuple This will error if the inheritance chain can ' t be built such as adding a child template without the parent one .
pub fn add_template_files<P: AsRef<Path>>(
        &mut self,
        files: Vec<(P, Option<&str>)>,
    ) -> Result<()> {
        for (path, name) in files {
            self.add_file(name, path)?;
        }
        self.build_inheritance_chains()?;
        self.check_macro_files()?;
        Ok(())
    }
pub fn add_template_files < P : AsRef < Path > > ( & mut self , files : Vec < ( P , Option < & str > ) > , ) -> Result < ( ) > { for ( path , name ) in files { self . add_file ( name , path ) ? ; } self . build_inheritance_chains ( ) ? ; self . check_macro_files ( ) ? ; Ok ( ( ) ) }
Add several templates from paths to the Tera instance.
Add several templates from paths to the Tera instance .
&mut self
files
Vec<(P, Option<&str>)>
&mut self
files
Vec<(P, Option<&str>)>