src/Chiron/Handler/Formatter/HtmlFormatter.php
private function arrayToHtml(array $data): string
    {
        $html = file_get_contents($this->path);

        foreach ($data as $key => $val) {
            $html = str_replace("{{ $$key }}", $val, $html);
        }

        return $html;
    }
private function arrayToHtml(array $data): string
    {
        $html = file_get_contents($this->path);

        foreach ($data as $key => $val) {
            $html = str_replace("{{ $$key }}", $val, $html);
        }

        return $html;
    }
private function arrayToHtml ( array $ data ) : string { $ html = file_get_contents ( $ this -> path ) ; foreach ( $ data as $ key => $ val ) { $ html = str_replace ( "{{ $$key }}" , $ val , $ html ) ; } return $ html ; }
Render the page with given data.

@param array $data

@return string
Render the page with given data .