original_string: public function render(Closure $callback = null)
      {
          try {
              $contents = $this->renderContents();
  
              $response = isset($callback) ? $callback($this, $contents) : null;
  
              // Once we have the contents of the view, we will flush the sections if we are
              // done rendering all views so that there is nothing left hanging over when
              // another view gets rendered in the future by the application developer.
              $this->factory->flushSectionsIfDoneRendering();
  
              return $response ?: $contents;
          } catch (Exception $e) {
              $this->factory->flushSections();
  
              throw $e;
          }
      }
code: public function render(Closure $callback = null)
      {
          try {
              $contents = $this->renderContents();
  
              $response = isset($callback) ? $callback($this, $contents) : null;
  
              // Once we have the contents of the view, we will flush the sections if we are
              // done rendering all views so that there is nothing left hanging over when
              // another view gets rendered in the future by the application developer.
              $this->factory->flushSectionsIfDoneRendering();
  
              return $response ?: $contents;
          } catch (Exception $e) {
              $this->factory->flushSections();
  
              throw $e;
          }
      }
code_tokens: public function render ( Closure $ callback = null ) { try { $ contents = $ this -> renderContents ( ) ; $ response = isset ( $ callback ) ? $ callback ( $ this , $ contents ) : null ; // Once we have the contents of the view, we will flush the sections if we are // done rendering all views so that there is nothing left hanging over when // another view gets rendered in the future by the application developer. $ this -> factory -> flushSectionsIfDoneRendering ( ) ; return $ response ? : $ contents ; } catch ( Exception $ e ) { $ this -> factory -> flushSections ( ) ; throw $ e ; } }
docstring: Get the string contents of the View.
  
  @param  \Closure  $callback
  @return string
docstring_tokens: Get the string contents of the View .