class Hpricot::Elem

def haml_attribute_pair(name, value, options)

Returns the string representation of a single attribute key value pair
def haml_attribute_pair(name, value, options)
  value = dynamic_attribute?(name, options) ? dynamic_attributes[name] : value.inspect
  if options[:html_style_attributes]
    "#{name}=#{value}"
  else
    name = name.index(/\W/) ? name.inspect : ":#{name}"
    "#{name} => #{value}"
  end
end