src/Leevel/Page/Page.php
public function render($render = null, array $option = []): string
    {
        $option = array_merge($this->option['render_option'], $option);

        if (null === $render || is_string($render)) {
            $render = $render ?: $this->getRender();
            $render = __NAMESPACE__.'\\'.ucfirst($render);
            $render = new $render($this);
        } elseif (!$render instanceof IRender) {
            throw new RuntimeException('Unsupported render type.');
        }

        $result = $render->render($option);

        $this->cachedUrl = null;

        return $result;
    }
public function render($render = null, array $option = []): string
    {
        $option = array_merge($this->option['render_option'], $option);

        if (null === $render || is_string($render)) {
            $render = $render ?: $this->getRender();
            $render = __NAMESPACE__.'\\'.ucfirst($render);
            $render = new $render($this);
        } elseif (!$render instanceof IRender) {
            throw new RuntimeException('Unsupported render type.');
        }

        $result = $render->render($option);

        $this->cachedUrl = null;

        return $result;
    }
渲染分页.

@param null|\Leevel\Page\IRender|string $render
@param array                            $option

@return string