public function getContent($name) { if ($this->templates === NULL) { return $name; } elseif (isset($this->templates[$name])) { return $this->templates[$name]; } else { throw new \RuntimeException("Missing template '{$name}'."); } }