code: public function render(string $view) : string
      {
          // remember current instance for global functions like out(), section(), ...
          self::$currentInstance = $this;
  
          // setup the initial part
          $this->parts->startPart();
          // render the view
          $this->renderView($view);
          // stop the current part
          $this->parts->stopPart();
  
          // reset pointer to current instance
          self::$currentInstance = null;
  
          // gather the content result
          return $this->parts->getContent();
      }
docs: @param string $view
  
  @return string