src/Way/Generators/Generator.php
public function compile($templatePath, array $data, TemplateCompiler $compiler)
    {
        return $compiler->compile($this->file->get($templatePath), $data);
    }
public function compile($templatePath, array $data, TemplateCompiler $compiler)
    {
        return $compiler->compile($this->file->get($templatePath), $data);
    }
public function compile ( $ templatePath , array $ data , TemplateCompiler $ compiler ) { return $ compiler -> compile ( $ this -> file -> get ( $ templatePath ) , $ data ) ; }
Compile the file

@param $templatePath
@param array $data
@param TemplateCompiler $compiler
@throws UndefinedTemplate
@return mixed
Compile the file