src/Mmanos/Casset/Container.php
public function content($type)
	{
		$assets = array();
		
		foreach ($this->assets as $asset) {
			if ('style' == $type && 'css' !== $asset['ext'] && 'less' !== $asset['ext']) {
				continue;
			}
			else if ('script' == $type && 'js' !== $asset['ext']) {
				continue;
			}
			
			$assets[] = $this->process($asset);
		}
		
		if (empty($assets)) {
			return '';
		}
		
		if (count($assets) > 1 || $this->minify) {
			$assets = $this->combine($assets, $type);
		}
		
		$content = array();
		
		foreach ($assets as $asset) {
			$content[] = File::get(array_get($asset, 'path'));
		}
		
		return implode("\n\n", $content);
	}
public function content($type)
	{
		$assets = array();
		
		foreach ($this->assets as $asset) {
			if ('style' == $type && 'css' !== $asset['ext'] && 'less' !== $asset['ext']) {
				continue;
			}
			else if ('script' == $type && 'js' !== $asset['ext']) {
				continue;
			}
			
			$assets[] = $this->process($asset);
		}
		
		if (empty($assets)) {
			return '';
		}
		
		if (count($assets) > 1 || $this->minify) {
			$assets = $this->combine($assets, $type);
		}
		
		$content = array();
		
		foreach ($assets as $asset) {
			$content[] = File::get(array_get($asset, 'path'));
		}
		
		return implode("\n\n", $content);
	}
public function content ( $ type ) { $ assets = array ( ) ; foreach ( $ this -> assets as $ asset ) { if ( 'style' == $ type && 'css' !== $ asset [ 'ext' ] && 'less' !== $ asset [ 'ext' ] ) { continue ; } else if ( 'script' == $ type && 'js' !== $ asset [ 'ext' ] ) { continue ; } $ assets [ ] = $ this -> process ( $ asset ) ; } if ( empty ( $ assets ) ) { return '' ; } if ( count ( $ assets ) > 1 || $ this -> minify ) { $ assets = $ this -> combine ( $ assets , $ type ) ; } $ content = array ( ) ; foreach ( $ assets as $ asset ) { $ content [ ] = File :: get ( array_get ( $ asset , 'path' ) ) ; } return implode ( "\n\n" , $ content ) ; }
Process and return the contents for this container for the
requested file type.

@param string $type 'style' or 'script'

@return string
Process and return the contents for this container for the requested file type .