public static function render($filter = '')
    {
        $returnValue = (string) '';

        
		if(empty($filter) || strtolower($filter) == tao_helpers_Scriptloader::CSS){
			foreach(self::$cssFiles as $file){
				$returnValue .= "\t<link rel='stylesheet' type='text/css' href='{$file}' />\n";
			}
		}
		if(empty($filter) || strtolower($filter) == tao_helpers_Scriptloader::JS){
			if(count(self::$jsVars) > 0){
				$returnValue .= "\t<script type='text/javascript'>\n";
				foreach(self::$jsVars as $name => $value){
					$returnValue .= "\tvar {$name} = '{$value}';\n";
				}
				$returnValue .= "\t</script>\n";
			}
			foreach(self::$jsFiles as $file){
				$returnValue .= "\t<script type='text/javascript' src='{$file}' ></script>\n";
			}
		}
        

        return (string) $returnValue;
    }
public static function render($filter = '')
    {
        $returnValue = (string) '';

        
		if(empty($filter) || strtolower($filter) == tao_helpers_Scriptloader::CSS){
			foreach(self::$cssFiles as $file){
				$returnValue .= "\t<link rel='stylesheet' type='text/css' href='{$file}' />\n";
			}
		}
		if(empty($filter) || strtolower($filter) == tao_helpers_Scriptloader::JS){
			if(count(self::$jsVars) > 0){
				$returnValue .= "\t<script type='text/javascript'>\n";
				foreach(self::$jsVars as $name => $value){
					$returnValue .= "\tvar {$name} = '{$value}';\n";
				}
				$returnValue .= "\t</script>\n";
			}
			foreach(self::$jsFiles as $file){
				$returnValue .= "\t<script type='text/javascript' src='{$file}' ></script>\n";
			}
		}
        

        return (string) $returnValue;
    }
public static function render ( $ filter = '' ) { $ returnValue = ( string ) '' ; if ( empty ( $ filter ) || strtolower ( $ filter ) == tao_helpers_Scriptloader :: CSS ) { foreach ( self :: $ cssFiles as $ file ) { $ returnValue .= "\t<link rel='stylesheet' type='text/css' href='{$file}' />\n" ; } } if ( empty ( $ filter ) || strtolower ( $ filter ) == tao_helpers_Scriptloader :: JS ) { if ( count ( self :: $ jsVars ) > 0 ) { $ returnValue .= "\t<script type='text/javascript'>\n" ; foreach ( self :: $ jsVars as $ name => $ value ) { $ returnValue .= "\tvar {$name} = '{$value}';\n" ; } $ returnValue .= "\t</script>\n" ; } foreach ( self :: $ jsFiles as $ file ) { $ returnValue .= "\t<script type='text/javascript' src='{$file}' ></script>\n" ; } } return ( string ) $ returnValue ; }
render the html to load the resources

@access public
@author Bertrand Chevrier, <bertrand.chevrier@tudor.lu>
@param  string filter
@return string
render the html to load the resources