public function generateViewFile($content)
    {
        $name = $this->getRandomName();

        $path = sys_get_temp_dir();

        $filename = $path.'/'.$name.'.twig';

        if (!file_exists(dirname($filename))) {
            mkdir(dirname($filename), 0755, true);
        }

        file_put_contents($filename, $content);

        return $filename;
    }