1 | <?php |
||
6 | class Template implements TemplateInterface |
||
7 | { |
||
8 | const DELIMINATOR = '<!-- ┈✂┈┈┈┈┈✄┈┈┈┈┈✄┈┈┈┈┈✄┈┈┈┈┈✄┈┈┈┈┈✄┈┈┈┈┈✂┈┈┈┈┈✄┈┈┈┈┈✂┈┈┈┈┈✄┈┈┈┈┈✂┈┈┈┈┈✄┈ -->'; |
||
9 | |||
10 | /** @var string */ |
||
11 | private $bottom; |
||
12 | /** @var string */ |
||
13 | private $top; |
||
14 | /** @var array */ |
||
15 | private $context = [ |
||
16 | 'sIndexHtml' => '', |
||
17 | 'sIndex' => '', |
||
18 | 'sSignature' => '', |
||
19 | 'sReadmeHtml' => '', |
||
20 | 'aPreviews' => [], |
||
21 | 'sFooterReadme' => '', |
||
22 | 'aCssAssets' => [], |
||
23 | 'aJsAssets' => [], |
||
24 | ]; |
||
25 | |||
26 | /** @var PHPTAL */ |
||
27 | private $template; |
||
28 | |||
29 | final public function __construct(PHPTAL $template) |
||
33 | |||
34 | final public function buildTop(array $context) |
||
42 | |||
43 | final public function buildBottom(array $context) |
||
51 | |||
52 | private function split(PHPTAL $template, array $context) |
||
63 | |||
64 | /** |
||
65 | * @param $context |
||
66 | */ |
||
67 | private function doSplit(array $context) |
||
72 | } |
||
73 | |||
75 |