public function parse($source) { $parts = $this->parent->split($source); if (count($parts) > 1) { $config = YAML::parse($parts[0]); // Caches the template config Helper::setConfig($this->parent->getName(), $config); $this->addAttributes()->addLayout()->addTitle(); } return $source; }