public function getProcessedMarkup()
{
if ($this->processedMarkupCache !== false) {
return $this->processedMarkupCache;
}
/*
* Process snippets
*/
$markup = Snippet::processPageMarkup($this->getFileName(), $this->theme, $this->markup);
/*
* Inject global view variables
*/
$globalVars = ViewHelper::getGlobalVars();
if (!empty($globalVars)) {
$markup = TextParser::parse($markup, $globalVars);
}
return $this->processedMarkupCache = $markup;
}