module Haml::Helpers

def html_attrs(lang = 'en-US')




becomes

%html{html_attrs}

For example,
which defaults to 'en-US'.
It also takes an optional argument for the value of xml:lang and lang,
attributes of the html HTML element.
Returns a hash containing default assignments for the xmlns and xml:lang
def html_attrs(lang = 'en-US')
  {:xmlns => "http://www.w3.org/1999/xhtml", 'xml:lang' => lang, :lang => lang}
end