| 1 | <?php |
||
| 9 | class Twig implements Engine { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * The twig compiler engine. |
||
| 13 | * |
||
| 14 | * @var \Twig_Environment |
||
| 15 | */ |
||
| 16 | protected $compiler; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Fetch the compiler. |
||
| 20 | * |
||
| 21 | * @return \Twig_Environment |
||
| 22 | */ |
||
| 23 | public function compiler() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Render the template content. |
||
| 34 | * |
||
| 35 | * @param string $path |
||
| 36 | * @param array $properties |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function render($path, $properties = []) |
||
| 47 | |||
| 48 | } |
||
| 49 |