public function getProcessedPlaceholderMarkup($placeholderName, $placeholderContents)
{
if (array_key_exists($placeholderName, $this->processedBlockMarkupCache)) {
return $this->processedBlockMarkupCache[$placeholderName];
}
/*
* Process snippets
*/
$markup = Snippet::processPageMarkup($this->getFileName() . md5($placeholderName), $this->theme, $placeholderContents);
/*
* Inject global view variables
*/
$globalVars = ViewHelper::getGlobalVars();
if (!empty($globalVars)) {
$markup = TextParser::parse($markup, $globalVars);
}
return $this->processedBlockMarkupCache[$placeholderName] = $markup;
}