protected function html(Page $page)
    {
        $html = $this->content->make($content = $page->content());

        if (($name = $page->layout()) !== null) {
            $data = array_merge($this->helpers(), (array) $page->data());

            $layout = new Layout($this->renderer, $this, $data);

            $html = (string) $layout->render($name, (string) $content);
        }

        foreach ($this->filters as $filter) {
            $html = $filter->filter($html);
        }

        return $html;
    }
protected function html(Page $page)
    {
        $html = $this->content->make($content = $page->content());

        if (($name = $page->layout()) !== null) {
            $data = array_merge($this->helpers(), (array) $page->data());

            $layout = new Layout($this->renderer, $this, $data);

            $html = (string) $layout->render($name, (string) $content);
        }

        foreach ($this->filters as $filter) {
            $html = $filter->filter($html);
        }

        return $html;
    }
protected function html ( Page $ page ) { $ html = $ this -> content -> make ( $ content = $ page -> content ( ) ) ; if ( ( $ name = $ page -> layout ( ) ) !== null ) { $ data = array_merge ( $ this -> helpers ( ) , ( array ) $ page -> data ( ) ) ; $ layout = new Layout ( $ this -> renderer , $ this , $ data ) ; $ html = ( string ) $ layout -> render ( $ name , ( string ) $ content ) ; } foreach ( $ this -> filters as $ filter ) { $ html = $ filter -> filter ( $ html ) ; } return $ html ; }
Converts the specified page into HTML.

@param  \Staticka\Page $page
@return string
Converts the specified page into HTML .