src/classes/CCAsset/Holder.php
public function add( $item ) 
	{
		// when the first character is a "smaller than" we simply assume
		// that a custom tag has been passed and not a filepath
		if ( strpos( $item, "<" ) !== false ) 
		{
			$macro = '_';
		} else {
			$macro = CCStr::extension( $item );
		}
		
		if ( !isset( $this->assets[$macro] ) )
		{
			$this->assets[$macro] = array();
		}
		
		$this->assets[$macro][] = $item;
	}
public function add( $item ) 
	{
		// when the first character is a "smaller than" we simply assume
		// that a custom tag has been passed and not a filepath
		if ( strpos( $item, "<" ) !== false ) 
		{
			$macro = '_';
		} else {
			$macro = CCStr::extension( $item );
		}
		
		if ( !isset( $this->assets[$macro] ) )
		{
			$this->assets[$macro] = array();
		}
		
		$this->assets[$macro][] = $item;
	}
public function add ( $ item ) { // when the first character is a "smaller than" we simply assume // that a custom tag has been passed and not a filepath if ( strpos ( $ item , "<" ) !== false ) { $ macro = '_' ; } else { $ macro = CCStr :: extension ( $ item ) ; } if ( ! isset ( $ this -> assets [ $ macro ] ) ) { $ this -> assets [ $ macro ] = array ( ) ; } $ this -> assets [ $ macro ] [ ] = $ item ; }
Add an asset to the holder. Basically this method checks the
file extension to sort them and generate the correct code using the macros.

$holder->add( 'jquery.js' );
$holder->add( 'style.css' );
$holder->add( '<script>document.write( "Hello World" );</script>' );

@param string			$item
@return void
Add an asset to the holder . Basically this method checks the file extension to sort them and generate the correct code using the macros .