module Hpricot

def self.build(ele = Doc.new, assigns = {}, &blk)

def self.build(ele = Doc.new, assigns = {}, &blk)
  ele.extend Builder
  assigns.each do |k, v|
    ele.instance_variable_set("@#{k}", v)
  end
  ele.instance_eval &blk
  ele
end