public function template($type, array $params) {
		$library = Libraries::get(isset($params['library']) ? $params['library'] : true);
		$params['library'] = $library['path'];
		$path = $this->_paths($type, $params);

		if ($this->_compile) {
			$compiler = $this->_classes['compiler'];
			$path = $compiler::template($path, $this->_config['compiler']);
		}
		return $path;
	}
public function template($type, array $params) {
		$library = Libraries::get(isset($params['library']) ? $params['library'] : true);
		$params['library'] = $library['path'];
		$path = $this->_paths($type, $params);

		if ($this->_compile) {
			$compiler = $this->_classes['compiler'];
			$path = $compiler::template($path, $this->_config['compiler']);
		}
		return $path;
	}
public function template ( $ type , array $ params ) { $ library = Libraries :: get ( isset ( $ params [ 'library' ] ) ? $ params [ 'library' ] : true ) ; $ params [ 'library' ] = $ library [ 'path' ] ; $ path = $ this -> _paths ( $ type , $ params ) ; if ( $ this -> _compile ) { $ compiler = $ this -> _classes [ 'compiler' ] ; $ path = $ compiler :: template ( $ path , $ this -> _config [ 'compiler' ] ) ; } return $ path ; }
Returns a template file name

@param string $type
@param array $params
@return string
Returns a template file name