| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function renderTemplate(Plates\Template $template, Plates\RenderTemplate $rt = null) { |
||
| 18 | $path = Plates\Template\getPath($template); |
||
| 19 | |||
| 20 | try { |
||
| 21 | return ($this->include)($path, $template->data); |
||
| 22 | } catch (Exception $e) { |
||
|
|
|||
| 23 | |||
| 24 | } catch (Throwable $e) { |
||
| 25 | |||
| 26 | } |
||
| 27 | |||
| 28 | throw new Plates\Exception\PlatesException( |
||
| 29 | 'An exception occurred while rendering Template ' . $template->name . '.', |
||
| 30 | 0, |
||
| 31 | $e |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |