Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public static function render(string $templatePath, string $templateName, array $data): string |
||
13 | { |
||
14 | $output = new \WebServCo\Framework\Libraries\HtmlOutput(); |
||
15 | foreach ($data as $k => $v) { |
||
16 | $output->setData($k, $v); |
||
17 | } |
||
18 | $output->setPath($templatePath); |
||
19 | |||
20 | $output->setTemplate($templateName); |
||
21 | return $output->render(); |
||
22 | } |
||
24 |