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);
	}