public function getHTML( $type = null )
	{
		$html = '';
		$param = '?v=';

		if( strpos( $this->_baseURL, '?' ) !== false ) {
			$param = '&v=';
		}

		foreach ( $this->_registeredPackages as $filetype => $packageList )
		{
			if( $type !== null && $filetype !== $type ) {
				continue;
			}

			foreach( $packageList as $package )
			{
				$packageFile = $this->_deployDir . $package->file;
				$packageFileFilesystem = $this->_basePath . $packageFile;
				$packageFileTime = 0;
				$timestamp = 0;

				if( DIRECTORY_SEPARATOR !== '/' ) {
					$packageFileFilesystem = str_replace( '/', DIRECTORY_SEPARATOR, $packageFileFilesystem );
				}

				if( is_file( $packageFileFilesystem ) ) {
					$packageFileTime = filemtime( $packageFileFilesystem );
				}

				$filesToDisplay = $this->_getFileUrls( $this->_baseURL, $this->_basePath, $param, $package, $timestamp );

				if( $packageFileTime >= $timestamp ) {
					$filesToDisplay = array( $this->_baseURL . $packageFile . $param . $packageFileTime );
				}

				$html .= $this->_createHtml( $filesToDisplay, $filetype );
			}
		}

		return $html;
	}