public function getTemplate(array $config)
	{
		foreach ($this->templateGenerators as $type => $generator)
		{
			if (isset($config[$type]))
			{
				return $generator->getTemplate($config[$type]);
			}
		}

		return '';
	}
public function getTemplate(array $config)
	{
		foreach ($this->templateGenerators as $type => $generator)
		{
			if (isset($config[$type]))
			{
				return $generator->getTemplate($config[$type]);
			}
		}

		return '';
	}
public function getTemplate ( array $ config ) { foreach ( $ this -> templateGenerators as $ type => $ generator ) { if ( isset ( $ config [ $ type ] ) ) { return $ generator -> getTemplate ( $ config [ $ type ] ) ; } } return '' ; }
Generate and return a template based on given config

@param  array  $config
@return string
Generate and return a template based on given config