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;
    }