pub fn load_template(&mut self, path: &str, _index: Option<u32>) -> Result<template::Compiled, Traced<TwigError>> {
        // TODO: Cache compiled templates
        //  * cache lookup
        //  * check if cache is fresh
        //  * store in cache

        let template_raw = try!(self.load_template_raw(path));
        return self.compile_template(&template_raw);
    }
/// Loads and compiles a template.
///
/// # Failures
/// * When the template cannot be found
/// * When an error occurred during compilation
Loads and compiles a template.
Loads and compiles a template .
pub fn load_template(&mut self, path: &str, _index: Option<u32>) -> Result<template::Compiled, Traced<TwigError>> {
        // TODO: Cache compiled templates
        //  * cache lookup
        //  * check if cache is fresh
        //  * store in cache
        let template_raw = try!(self.load_template_raw(path));
        return self.compile_template(&template_raw);
    }
pub fn load_template ( & mut self , path : & str , _index : Option < u32 > ) -> Result < template :: Compiled , Traced < TwigError > > { // TODO: Cache compiled templates //  * cache lookup //  * check if cache is fresh //  * store in cache let template_raw = try ! ( self load_template_raw ( path ) ) ; return self . compile_template ( & template_raw ) ; }
Loads and compiles a template.
Loads and compiles a template .
&mut self
path
&str
_index
Option<u32>
&mut self
path
&str
_index
Option<u32>
failures
When the template cannot be found
When an error occurred during compilation
When the template cannot be found When an error occurred during compilation