Module: TopHat::HtmlHelper

Defined in:
lib/tophat/html.rb

Instance Method Summary collapse

Instance Method Details

#html_tag(options = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/tophat/html.rb', line 4

def html_tag(options={})
  opts = options.dup
  opts.merge!(xmlns_options(opts.delete(:xmlns))) if opts[:xmlns]
  opts.merge!(prefix_options(opts.delete(:prefix))) if opts[:prefix]

  tag(:html, opts, true)
end