1 | <?php |
||
15 | class Stempler |
||
16 | { |
||
17 | /** |
||
18 | * @var LoaderInterface |
||
19 | */ |
||
20 | protected $loader = null; |
||
21 | |||
22 | /** |
||
23 | * @var SyntaxInterface |
||
24 | */ |
||
25 | protected $syntax = null; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $options = []; |
||
31 | |||
32 | /** |
||
33 | * @param LoaderInterface $loader |
||
34 | * @param string $syntax Syntax class to be used. |
||
35 | * @param array $options |
||
36 | */ |
||
37 | public function __construct($loader, $syntax = WooSyntax::class, array $options = []) |
||
43 | |||
44 | /** |
||
45 | * Compile path. |
||
46 | * |
||
47 | * @param string $path |
||
48 | * @return string |
||
49 | */ |
||
50 | public function compile($path) |
||
54 | |||
55 | /** |
||
56 | * Compile string template. |
||
57 | * |
||
58 | * @param string $source |
||
59 | * @return string |
||
60 | */ |
||
61 | public function compileString($source) |
||
67 | |||
68 | /** |
||
69 | * Create new instance of supervisor. |
||
70 | * |
||
71 | * @return Supervisor |
||
72 | */ |
||
73 | protected function supervisor() |
||
77 | } |