pub fn add_raw_template(&mut self, name: &str, content: &str) -> Result<()> {
        let tpl = Template::new(name, None, content)
            .chain_err(|| format!("Failed to parse '{}'", name))?;
        self.templates.insert(name.to_string(), tpl);
        self.build_inheritance_chains()?;
        self.check_macro_files()?;
        Ok(())
    }
/// Add a single template to the Tera instance
///
/// This will error if the inheritance chain can't be built, such as adding a child
/// template without the parent one.
/// If you want to add several templates, use [Tera::add_templates](struct.Tera.html#method.add_templates)
///
/// ```rust,ignore
/// tera.add_template("new.html", "Blabla");
/// ```
Add a single template to the Tera instance
This will error if the inheritance chain can't be built, such as adding a child
template without the parent one.


Add a single template to the Tera instance This will error if the inheritance chain can ' t be built such as adding a child template without the parent one .
pub fn add_raw_template(&mut self, name: &str, content: &str) -> Result<()> {
        let tpl = Template::new(name, None, content)
            .chain_err(|| format!("Failed to parse '{}'", name))?;
        self.templates.insert(name.to_string(), tpl);
        self.build_inheritance_chains()?;
        self.check_macro_files()?;
        Ok(())
    }
pub fn add_raw_template ( & mut self , name : & str , content : & str ) -> Result < ( ) > { let tpl = Template :: new ( name , None , content ) . chain_err ( | | format ! ( " " name ) ) ? ; self . templates . insert ( name . to_string ( ) , tpl ) ; self . build_inheritance_chains ( ) ? ; self . check_macro_files ( ) ? ; Ok ( ( ) ) }
Add a single template to the Tera instance
This will error if the inheritance chain can't be built, such as adding a child
template without the parent one.
Add a single template to the Tera instance This will error if the inheritance chain can ' t be built such as adding a child template without the parent one .
&mut self
name
&str
content
&str
&mut self
name
&str
content
&str