static public function render($webpage)
    {
        $tplEngine = $webpage->templateEngine;
        $tplAttributes = ViewRenderer::buildTemplateAttributes($webpage);

        ob_start();

        if ($tplEngine == "Smarty" || $tplEngine == null) {
            ViewRenderer::renderSmarty($webpage, $tplAttributes);
        } else {
            ViewRenderer::renderPHP($webpage, $tplAttributes);
        }

        $html = ob_get_contents();
        ob_end_clean();
        
        if (defined("OPENBIZ_PAGE_MINIFY") && OPENBIZ_PAGE_MINIFY == 1) {
            $html = self::MinifyOutput($html);
        }
        return $html;
    }
static public function render($webpage)
    {
        $tplEngine = $webpage->templateEngine;
        $tplAttributes = ViewRenderer::buildTemplateAttributes($webpage);

        ob_start();

        if ($tplEngine == "Smarty" || $tplEngine == null) {
            ViewRenderer::renderSmarty($webpage, $tplAttributes);
        } else {
            ViewRenderer::renderPHP($webpage, $tplAttributes);
        }

        $html = ob_get_contents();
        ob_end_clean();
        
        if (defined("OPENBIZ_PAGE_MINIFY") && OPENBIZ_PAGE_MINIFY == 1) {
            $html = self::MinifyOutput($html);
        }
        return $html;
    }
static public function render ( $ webpage ) { $ tplEngine = $ webpage -> templateEngine ; $ tplAttributes = ViewRenderer :: buildTemplateAttributes ( $ webpage ) ; ob_start ( ) ; if ( $ tplEngine == "Smarty" || $ tplEngine == null ) { ViewRenderer :: renderSmarty ( $ webpage , $ tplAttributes ) ; } else { ViewRenderer :: renderPHP ( $ webpage , $ tplAttributes ) ; } $ html = ob_get_contents ( ) ; ob_end_clean ( ) ; if ( defined ( "OPENBIZ_PAGE_MINIFY" ) && OPENBIZ_PAGE_MINIFY == 1 ) { $ html = self :: MinifyOutput ( $ html ) ; } return $ html ; }
Render view object

@param WebPage $webpage
@return string result of rendering process
Render view object