code: public function renderBuffered($region = "main")
      {
          ob_start();
          $this->render($region);
          $res = ob_get_contents();
          ob_end_clean();
          return $res;
      }
docs: Render all views for a specific region and buffer the result.
  
  @param string $region which region to use.
  
  @return string with the buffered results.