public static function render($object, array $vars = [], $type = null)
	{
		if($view = static::resolveFirst($object, null, $type))
		{
			return new $view(['object' => $object] + $vars);
		}
	}
public static function render($object, array $vars = [], $type = null)
	{
		if($view = static::resolveFirst($object, null, $type))
		{
			return new $view(['object' => $object] + $vars);
		}
	}
public static function render ( $ object , array $ vars = [ ] , $ type = null ) { if ( $ view = static :: resolveFirst ( $ object , null , $ type ) ) { return new $ view ( [ 'object' => $ object ] + $ vars ) ; } }
Render a given object with a view provided by the theme.

@param object $renderKey string to resolve values for.
@param array $vars additional variables passed on to view
@param type string type of view to return

@return object View object ready to be rendered..
Render a given object with a view provided by the theme .