public static function view($handler, $data, &$response = null, array $options = []) {
		$params = ['response' => &$response] + compact('handler', 'data', 'options');

		return Filters::run(get_called_class(), __FUNCTION__, $params, function($params) {
			$handler = $params['handler'];
			$response =& $params['response'];

			$handler = is_array($handler) ? $handler : static::handlers($handler);
			$class = $handler['view'];
			unset($handler['view']);

			$config = $handler + ['response' => &$response];
			return static::_instance($class, $config);
		});
	}
public static function view($handler, $data, &$response = null, array $options = []) {
		$params = ['response' => &$response] + compact('handler', 'data', 'options');

		return Filters::run(get_called_class(), __FUNCTION__, $params, function($params) {
			$handler = $params['handler'];
			$response =& $params['response'];

			$handler = is_array($handler) ? $handler : static::handlers($handler);
			$class = $handler['view'];
			unset($handler['view']);

			$config = $handler + ['response' => &$response];
			return static::_instance($class, $config);
		});
	}
public static function view ( $ handler , $ data , & $ response = null , array $ options = [ ] ) { $ params = [ 'response' => & $ response ] + compact ( 'handler' , 'data' , 'options' ) ; return Filters :: run ( get_called_class ( ) , __FUNCTION__ , $ params , function ( $ params ) { $ handler = $ params [ 'handler' ] ; $ response = & $ params [ 'response' ] ; $ handler = is_array ( $ handler ) ? $ handler : static :: handlers ( $ handler ) ; $ class = $ handler [ 'view' ] ; unset ( $ handler [ 'view' ] ) ; $ config = $ handler + [ 'response' => & $ response ] ; return static :: _instance ( $ class , $ config ) ; } ) ; }
Configures a template object instance, based on a media handler configuration.

@see lithium\net\http\Media::type()
@see lithium\template\View::render()
@see lithium\action\Response
@param mixed $handler Either a string specifying the name of a media type for which a handler
is defined, or an array representing a handler configuration. For more on types
and type handlers, see the `type()` method.
@param mixed $data The data to be rendered. Usually an array.
@param object $response The `Response` object associated with this dispatch cycle. Usually an
instance of `lithium\action\Response`.
@param array $options Any options that will be passed to the `render()` method of the
templating object.
@return object Returns an instance of a templating object, usually `lithium\template\View`.
@filter
Configures a template object instance based on a media handler configuration .