public static function getTemplateConfig()
	{
		if (self::$_templateConfig === 0) {
			$request = Agl::getRequest();
			$module  = $request->getModule();
			$view    = $request->getView();
			$action  = $request->getAction();

			self::$_templateConfig = Agl::app()->getConfig('core-layout/modules/' . $module . '#' . $view . '#action#' . $action . '/template');

			if (self::$_templateConfig === NULL) {
			    self::$_templateConfig = Agl::app()->getConfig('core-layout/modules/' . $module . '#' . $view . '/template');
			}

			if (self::$_templateConfig === NULL) {
			    self::$_templateConfig = Agl::app()->getConfig('core-layout/modules/' . $module . '/template');
			}

			if (self::$_templateConfig === NULL) {
				self::$_templateConfig = Agl::app()->getConfig('core-layout/template');
			}
		}

		if (! isset(self::$_templateConfig['type'])) {
			self::$_templateConfig['type'] = ViewInterface::TYPE_HTML;
		}

		return self::$_templateConfig;
	}