/**
* @param string $basePath
* @param string $tempPath
*/
public function __construct($basePath, $tempPath = null)
{
$this->latte = new Engine();
$this->latte->setLoader(new FileLoader());
if ($tempPath) {
$this->latte->setTempDirectory($tempPath);
}
$this->basePath = $basePath;
}