original_string: function parseNode($node) {
  		$src=false;
  		$params = array();
  		if (isset($node['@attrib'])) {
  			$params = $node['@attrib'];
  			unset($node['@attrib']);
  		}
  		// find src
  		if (array_key_exists('src',$params))
  			$src = $params['src'];
  		elseif (array_key_exists('href',$params))
  			$src = $params['href'];
  		if ($src) {
  			$out = '<?php \Assets::instance()->addNode(array(';
  			foreach($params as $key=>$val)
  				$out.=var_export($key,true).'=>'.(preg_match('/{{(.+?)}}/s',$val)
  					?$this->template->token($val):var_export($val,true)).',';
  			$out.=')); ?>';
  			return $out;
  		}
  		// inner content
  		if (isset($node[0]) && isset($params['type'])) {
  			if (!isset($params['group']))
  				$params['group'] = ($params['type'] == 'js')
  					? 'footer' : 'head';
  			if (!isset($params['slot']))
  				$params['slot'] = 'inline';
  			if ($this->f3->get('ASSETS.handle_inline'))
  				return '<?php \Assets::instance()->addInline('.
  				'$this->resolve('.(var_export($node,true)).
  					',get_defined_vars(),0,false,false),'.
  				var_export($params['type'],true).','.
  				var_export($params['group'],true).','.
  				var_export($params['slot'],true).'); ?>';
  			else
  				// just bypass
  				return $this->f3->call($this->formatter[$params['type']],array(array(
  					'data'=>$this->template->build($node),
  					'origin'=>'inline'
  				)));
  		}
  	}
code: function parseNode($node) {
  		$src=false;
  		$params = array();
  		if (isset($node['@attrib'])) {
  			$params = $node['@attrib'];
  			unset($node['@attrib']);
  		}
  		// find src
  		if (array_key_exists('src',$params))
  			$src = $params['src'];
  		elseif (array_key_exists('href',$params))
  			$src = $params['href'];
  		if ($src) {
  			$out = '<?php \Assets::instance()->addNode(array(';
  			foreach($params as $key=>$val)
  				$out.=var_export($key,true).'=>'.(preg_match('/{{(.+?)}}/s',$val)
  					?$this->template->token($val):var_export($val,true)).',';
  			$out.=')); ?>';
  			return $out;
  		}
  		// inner content
  		if (isset($node[0]) && isset($params['type'])) {
  			if (!isset($params['group']))
  				$params['group'] = ($params['type'] == 'js')
  					? 'footer' : 'head';
  			if (!isset($params['slot']))
  				$params['slot'] = 'inline';
  			if ($this->f3->get('ASSETS.handle_inline'))
  				return '<?php \Assets::instance()->addInline('.
  				'$this->resolve('.(var_export($node,true)).
  					',get_defined_vars(),0,false,false),'.
  				var_export($params['type'],true).','.
  				var_export($params['group'],true).','.
  				var_export($params['slot'],true).'); ?>';
  			else
  				// just bypass
  				return $this->f3->call($this->formatter[$params['type']],array(array(
  					'data'=>$this->template->build($node),
  					'origin'=>'inline'
  				)));
  		}
  	}
code_tokens: function parseNode ( $ node ) { $ src = false ; $ params = array ( ) ; if ( isset ( $ node [ '@attrib' ] ) ) { $ params = $ node [ '@attrib' ] ; unset ( $ node [ '@attrib' ] ) ; } // find src if ( array_key_exists ( 'src' , $ params ) ) $ src = $ params [ 'src' ] ; elseif ( array_key_exists ( 'href' , $ params ) ) $ src = $ params [ 'href' ] ; if ( $ src ) { $ out = '<?php \Assets::instance()->addNode(array(' ; foreach ( $ params as $ key => $ val ) $ out .= var_export ( $ key , true ) . '=>' . ( preg_match ( '/{{(.+?)}}/s' , $ val ) ? $ this -> template -> token ( $ val ) : var_export ( $ val , true ) ) . ',' ; $ out .= ')); ?>' ; return $ out ; } // inner content if ( isset ( $ node [ 0 ] ) && isset ( $ params [ 'type' ] ) ) { if ( ! isset ( $ params [ 'group' ] ) ) $ params [ 'group' ] = ( $ params [ 'type' ] == 'js' ) ? 'footer' : 'head' ; if ( ! isset ( $ params [ 'slot' ] ) ) $ params [ 'slot' ] = 'inline' ; if ( $ this -> f3 -> get ( 'ASSETS.handle_inline' ) ) return '<?php \Assets::instance()->addInline(' . '$this->resolve(' . ( var_export ( $ node , true ) ) . ',get_defined_vars(),0,false,false),' . var_export ( $ params [ 'type' ] , true ) . ',' . var_export ( $ params [ 'group' ] , true ) . ',' . var_export ( $ params [ 'slot' ] , true ) . '); ?>' ; else // just bypass return $ this -> f3 -> call ( $ this -> formatter [ $ params [ 'type' ] ] , array ( array ( 'data' => $ this -> template -> build ( $ node ) , 'origin' => 'inline' ) ) ) ; } }
docstring: parse node data on template compiling
  @param $node
  @return string
docstring_tokens: parse node data on template compiling