Adds a path where templates are stored.
string $path A path where to look for templates:
public function addPath($path) {
// invalidate the cache
$this->cache = array();
if (!is_dir($path)) {
throw new Twig_Error_Loader(sprintf('The "%s" directory does not exist.', $path));
}
$this->paths[] = rtrim($path, '/\\');
}