pub fn check_macro_files(&self) -> Result<()> {
        for template in self.templates.values() {
            for &(ref tpl_name, _) in &template.imported_macro_files {
                if !self.templates.contains_key(tpl_name) {
                    bail!(
                        "Template `{}` loads macros from `{}` which isn't present in Tera",
                        template.name,
                        tpl_name
                    );
                }
            }
        }

        Ok(())
    }
/// We keep track of macro files loaded in each Template so we can know whether one or them
/// is missing and error accordingly before the user tries to render a template.
///
/// As with `self::build_inheritance_chains`, you don't usually need to call that yourself.
We keep track of macro files loaded in each Template so we can know whether one or them
is missing and error accordingly before the user tries to render a template.

As with `self::build_inheritance_chains`, you don't usually need to call that yourself.
We keep track of macro files loaded in each Template so we can know whether one or them is missing and error accordingly before the user tries to render a template . As with ` self :: build_inheritance_chains ` you don ' t usually need to call that yourself .
pub fn check_macro_files(&self) -> Result<()> {
        for template in self.templates.values() {
            for &(ref tpl_name, _) in &template.imported_macro_files {
                if !self.templates.contains_key(tpl_name) {
                    bail!(
                        "Template `{}` loads macros from `{}` which isn't present in Tera",
                        template.name,
                        tpl_name
                    );
                }
            }
        }
        Ok(())
    }
pub fn check_macro_files ( & self ) -> Result < ( ) > { for template in self . templates . values ( ) { for & ( ref tpl_name , _ ) in & template . imported_macro_files { if ! self . templates . contains_key ( tpl_name ) { bail ! ( " " template name tpl_name ) ; } } } Ok ( ( ) ) }
We keep track of macro files loaded in each Template so we can know whether one or them
is missing and error accordingly before the user tries to render a template.
We keep track of macro files loaded in each Template so we can know whether one or them is missing and error accordingly before the user tries to render a template .
&self
&self