public function minify()
    {
        if ($this->isHTML() && class_exists('Minify_HTML'))
        {
            $page = ob_get_contents();
            ob_clean();
            echo Minify_HTML::minify($page);
        }
    }