public function renderHtml(string $latteFile, array $data, string $tempFolderLatte = '/tmp/latte'): string
    {
        $latte = new Engine();
        $latte->setTempDirectory($tempFolderLatte);
        return $latte->renderToString($latteFile, $data);
    }
public function renderHtml(string $latteFile, array $data, string $tempFolderLatte = '/tmp/latte'): string
    {
        $latte = new Engine();
        $latte->setTempDirectory($tempFolderLatte);
        return $latte->renderToString($latteFile, $data);
    }
public function renderHtml ( string $ latteFile , array $ data , string $ tempFolderLatte = '/tmp/latte' ) : string { $ latte = new Engine ( ) ; $ latte -> setTempDirectory ( $ tempFolderLatte ) ; return $ latte -> renderToString ( $ latteFile , $ data ) ; }
Use Latte for rendering HTML E-mails in your own project

@param string $latteFile
@param array $data
@param string $tempFolderLatte
@return string
Use Latte for rendering HTML E - mails in your own project