public function compile($templatePath, Array $templateData, $filePath)
    {
        $template = $this->filesystem->get($templatePath);

        $compiled = $this->compiler->compile($template, $templateData);

        $this->makeDirectory(dirname($filePath));

        $this->filesystem->put($filePath, $compiled);

        return $filePath;
    }
public function compile($templatePath, Array $templateData, $filePath)
    {
        $template = $this->filesystem->get($templatePath);

        $compiled = $this->compiler->compile($template, $templateData);

        $this->makeDirectory(dirname($filePath));

        $this->filesystem->put($filePath, $compiled);

        return $filePath;
    }
public function compile ( $ templatePath , Array $ templateData , $ filePath ) { $ template = $ this -> filesystem -> get ( $ templatePath ) ; $ compiled = $ this -> compiler -> compile ( $ template , $ templateData ) ; $ this -> makeDirectory ( dirname ( $ filePath ) ) ; $ this -> filesystem -> put ( $ filePath , $ compiled ) ; return $ filePath ; }
Compile the template.

@param $templatePath
@param $templateData
@param $filePath

@return string
Compile the template .