# File lib/xtemplate/node.rb, line 446 def expand_with_hash(data, pdata, rdata, plugin) # insert attributes and elements specified by ID. for key,attrval in data if( key == TextNode ) if( attrval ) @children = [] add_child(attrval) end elsif( key[0] == ?@ ) attr = key[1..-1] if( @name ) add_attr(attr) add_attrval(attrval) elsif( @propagation ) node = @parent while( node ) if( node.name ) node.add_attr(attr) node.add_attrval(attrval) break end node = node.parent end end end end expand_children(data, pdata, rdata, plugin) end