Tale\Jade\Renderer::compileFile PHP Method

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
    public function compileFile($path)
    {
        return $this->compiler->compileFile($path);
    }

Usage Example

コード例 #1
0
ファイル: PrettyTest.php プロジェクト: TeaMeow/Avane
    public function testSingle()
    {
        $phtml = <<<'PHTML'
<div class="container">
  <div class="row">
    <div class="col-md-6 col-sm-3">
      <p>
        Some content
      </p>
    </div>
    <div class="col-md-6 col-sm-3">
      <p>
        Some content
      </p>
    </div>
    <div class="col-md-6 col-sm-3">
      <p>
        Some content
      </p>
    </div>
  </div>
</div>
PHTML;
        $this->assertEquals(str_replace("\r", '', $phtml), $this->renderer->compileFile('single'));
    }
All Usage Examples Of Tale\Jade\Renderer::compileFile