Constructor.
array $templates An array of templates (keys are the names, and values are the source code):
Twig_Loader
public function __construct(array $templates) {
$this->templates = array();
foreach ($templates as $name => $template) {
$this->templates[$name] = $template;
}
}