original_string: protected function partial($resource, array $data = [])
  	{
  		if($resource instanceof ViewModelInterface)
  		{
  			return $this->view->render($resource, true);
  		}
  	
  		return $this->view->render(new ViewModel($this->view->resolveResourcePath($resource), $data), true);
  	}
code: protected function partial($resource, array $data = [])
  	{
  		if($resource instanceof ViewModelInterface)
  		{
  			return $this->view->render($resource, true);
  		}
  	
  		return $this->view->render(new ViewModel($this->view->resolveResourcePath($resource), $data), true);
  	}
code_tokens: protected function partial ( $ resource , array $ data = [ ] ) { if ( $ resource instanceof ViewModelInterface ) { return $ this -> view -> render ( $ resource , true ) ; } return $ this -> view -> render ( new ViewModel ( $ this -> view -> resolveResourcePath ( $ resource ) , $ data ) , true ) ; }
docstring: Render a partial view and return the generated output.
  
  @param string|ViewModelInterface $resource
  @param array<string, mixed> $data
docstring_tokens: Render a partial view and return the generated output .