public function addTemplates($templates)
    {
        foreach ($templates as $name => $template) {
            $this->twig->getLoader()->setTemplate($name, $template);
        }
    }
public function addTemplates($templates)
    {
        foreach ($templates as $name => $template) {
            $this->twig->getLoader()->setTemplate($name, $template);
        }
    }
public function addTemplates ( $ templates ) { foreach ( $ templates as $ name => $ template ) { $ this -> twig -> getLoader ( ) -> setTemplate ( $ name , $ template ) ; } }
Add templates, as a map of name to template, to the template loader.

@param array $templates
Add templates as a map of name to template to the template loader .