/** * The actual prepare, i. e. do stuff */ public function prepare() { $this->initPreparePageResult(); try { $rootNode = $this->createRootNode(); } catch (NoContentException $ignore) { return $this->result; } // prepare content $this->prepareContent($rootNode); // call css cache AFTER prepareContent, as we then know about legacy support and such $this->prepareCssCache($rootNode); // render the html to getall media calls (as well as cache the output result) // do this only if we are not in legacy support if (!$this->result->getLegacySupport()) { // $this->prepareHtmlCache($rootNode); // TODO: enable this if you want to have pre-generated images for all image calls } // remember media url calls $this->result->setMediaUrlCalls($this->mediaUrlCalls); return $this->result; }