public function render( $file = null ) 
	{
		if ( !is_null( $file ) )
		{
			$this->file( $file );
		}
		
		$path = $this->view_path( $this->file() );
		
		// extract the view data
		extract( $this->_data );
			
		// extract globals if they exists
		if ( !empty( static::$_globals ) ) 
		{
			extract( static::$_globals, EXTR_PREFIX_SAME, 'global' );
		}
			
		ob_start();
		
		require( $path );

		return ob_get_clean();
	}