lib/Skriv/Markup/Renderer.php
static public function factory($type='html', array $params=null) {
		if (!isset($type) || !strcasecmp($type, 'html'))
			return (new Html\Renderer($params));
		throw new \Exception("Unknown Skriv rendering type '$type'.");
	}
static public function factory($type='html', array $params=null) {
		if (!isset($type) || !strcasecmp($type, 'html'))
			return (new Html\Renderer($params));
		throw new \Exception("Unknown Skriv rendering type '$type'.");
	}
static public function factory ( $ type = 'html' , array $ params = null ) { if ( ! isset ( $ type ) || ! strcasecmp ( $ type , 'html' ) ) return ( new Html \ Renderer ( $ params ) ) ; throw new \ Exception ( "Unknown Skriv rendering type '$type'." ) ; }
Factory method. Creates a renderer object of the given type.
@param	string	$type	(optional) Type of rendering object. "html" by default.
@param	array	$params	(optional) Hash of parameters. The accepted parameters depends of the chosen rendering type.
@return	\Skriv\Markup\Renderer	A rendering object.
@throws	Exception	If something goes wrong.
Factory method . Creates a renderer object of the given type .