protected function render(array $info): string
    {
        $content = \file_get_contents($this->resolvedOptions['template_path']);

        foreach ($info as $key => $val) {
            $content = \str_replace("{{ $${key} }}", $val, $content);
        }

        return $content;
    }
protected function render(array $info): string
    {
        $content = \file_get_contents($this->resolvedOptions['template_path']);

        foreach ($info as $key => $val) {
            $content = \str_replace("{{ $${key} }}", $val, $content);
        }

        return $content;
    }
protected function render ( array $ info ) : string { $ content = \ file_get_contents ( $ this -> resolvedOptions [ 'template_path' ] ) ; foreach ( $ info as $ key => $ val ) { $ content = \ str_replace ( "{{ $${key} }}" , $ val , $ content ) ; } return $ content ; }
Render the page with given info.

@param array $info

@return string
Render the page with given info .