Class: Hamlit::HTML

Inherits:
Temple::HTML::Fast
  • Object
show all
Defined in:
lib/hamlit/html.rb

Constant Summary collapse

DEPRECATED_FORMATS =
%i[html4 html5].freeze

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ HTML

Returns a new instance of HTML.



6
7
8
9
10
11
12
# File 'lib/hamlit/html.rb', line 6

def initialize(opts = {})
  if DEPRECATED_FORMATS.include?(opts[:format])
    opts = opts.dup
    opts[:format] = :html
  end
  super(opts)
end