module CGI::HtmlExtension
def a(href = "") # :yield:
# => "Example"
a("HREF" => "http://www.example.com", "TARGET" => "_top") { "Example" }
# => "Example"
a("http://www.example.com") { "Example" }
block passed in.
The body of the element is the string returned by the no-argument
the element's attributes.
for the HREF attribute, or it can be a hash of
+href+ can either be a string, giving the URL
Generate an Anchor element as a string.
def a(href = "") # :yield: attributes = if href.kind_of?(String) { "HREF" => href } else href end super(attributes) end