protected static function init($config)
 {
     self::$config = $config;
     self::$DOMHtml = DOMHtml::getInstance();
     self::$htmlHeaders = HtmlHeaders::getInstance();
     self::$base = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'public') . DIRECTORY_SEPARATOR;
     self::$path = self::$config['URIBasePath'] . self::$config['LazyLoadBasePath'] . self::$config['cacheId'] . DIRECTORY_SEPARATOR;
 }
 public function render()
 {
     $DOMHtml = DOMHtml::getInstance();
     $html = $DOMHtml->render();
     if ($this->config['HtmlMinify']) {
         $html = $this->htmlCompress($html);
     } elseif ($this->config['HtmlIndentation']) {
         $html = $this->htmlIndentation($html);
     }
     return $html;
 }