module CGI::HtmlExtension

def reset(value = nil, name = nil)

#
reset("VALUE" => "reset", "ID" => "foo")

#
reset("reset")

#
reset

Alternatively, the attributes can be specified as a hash.

is the text displayed on the button. +name+ is the name of this button.
This resets the values on a form to their initial values. +value+

Generate a reset button Input element, as a String.
def reset(value = nil, name = nil)
  attributes = if (not value) or value.kind_of?(String)
                 { "TYPE" => "reset", "VALUE" => value, "NAME" => name }
               else
                 value["TYPE"] = "reset"
                 value
               end
  input(attributes)
end