original_string: public function getRegion($name)
      {
          if(array_key_exists($name, $this->_regions)) {
              $html = (is_subclass_of($this->_regions[$name], 'erdiko\core\Container')) ?
                  $this->_regions[$name]->toHtml() : $this->_regions[$name];
          } else {
              throw new \Exception("Template region '{$name}' does not exits.");
          }
          
          return $html;
      }
code: public function getRegion($name)
      {
          if(array_key_exists($name, $this->_regions)) {
              $html = (is_subclass_of($this->_regions[$name], 'erdiko\core\Container')) ?
                  $this->_regions[$name]->toHtml() : $this->_regions[$name];
          } else {
              throw new \Exception("Template region '{$name}' does not exits.");
          }
          
          return $html;
      }
code_tokens: public function getRegion ( $ name ) { if ( array_key_exists ( $ name , $ this -> _regions ) ) { $ html = ( is_subclass_of ( $ this -> _regions [ $ name ] , 'erdiko\core\Container' ) ) ? $ this -> _regions [ $ name ] -> toHtml ( ) : $ this -> _regions [ $ name ] ; } else { throw new \ Exception ( "Template region '{$name}' does not exits." ) ; } return $ html ; }
docstring: get rendered region
  
  @param string $name
  @return mixed $content, typically a string, Container object or other object
docstring_tokens: get rendered region