Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function renderTemplate(Plates\Template $template, Plates\RenderTemplate $render = null) { |
||
16 | $inc = self::createInclude(); |
||
17 | $inc = $this->bind ? ($this->bind)($inc, $template) : $inc; |
||
18 | |||
19 | return Plates\Util\obWrap(function() use ($inc, $template) { |
||
20 | $inc($template->get('path'), $template->data); |
||
21 | }); |
||
22 | } |
||
23 | |||
31 |