public function renderAndWriteFile($inputFile, $outputFile, array $parameters = [])
    {
        $outputDirectory = dirname($outputFile);

        if (!file_exists($outputDirectory) && !@mkdir($outputDirectory, 0777, true)) {
            return false;
        }

        return is_int($this->getNewSandBox(function () use ($outputFile, $inputFile, $parameters) {
            return file_put_contents($outputFile, $this->renderFile($inputFile, $parameters));
        })->getResult());
    }
public function renderAndWriteFile($inputFile, $outputFile, array $parameters = [])
    {
        $outputDirectory = dirname($outputFile);

        if (!file_exists($outputDirectory) && !@mkdir($outputDirectory, 0777, true)) {
            return false;
        }

        return is_int($this->getNewSandBox(function () use ($outputFile, $inputFile, $parameters) {
            return file_put_contents($outputFile, $this->renderFile($inputFile, $parameters));
        })->getResult());
    }
public function renderAndWriteFile ( $ inputFile , $ outputFile , array $ parameters = [ ] ) { $ outputDirectory = dirname ( $ outputFile ) ; if ( ! file_exists ( $ outputDirectory ) && ! @ mkdir ( $ outputDirectory , 0777 , true ) ) { return false ; } return is_int ( $ this -> getNewSandBox ( function ( ) use ( $ outputFile , $ inputFile , $ parameters ) { return file_put_contents ( $ outputFile , $ this -> renderFile ( $ inputFile , $ parameters ) ) ; } ) -> getResult ( ) ) ; }
Render a pug file and dump it into a file.
Return true if the render and the writing succeeded.

@param string $inputFile  input file (Pug file)
@param string $outputFile output file (typically the HTML/XML file)
@param array  $parameters local variables

@return bool
Render a pug file and dump it into a file . Return true if the render and the writing succeeded .