compileFile() public method

The given path will automatically passed as compile()'s $path argument The path should always be relative to the paths-option paths
public compileFile ( string $path ) : mixed | string
$path string the path to the jade file
return mixed | string the compiled PHTML
Exemplo n.º 1
0
 /**
  * Compiles a file to PHTML.
  *
  * The given path will automatically passed as
  * compile()'s $path argument
  *
  * The path should always be relative to the paths-option paths
  *
  * @see Renderer->compile
  *
  * @param string $path The path to the jade file
  *
  * @return mixed|string the compiled PHTML
  * @throws \Exception when the file wasnt found or the compilation,
  *                    lexing or parsing failed
  */
 public function compileFile($path)
 {
     return $this->_compiler->compileFile($path);
 }