Sha256: 10753d2ea73c6d1d2fb78c53cde82b40fe0f70fb8525417d8a373c2dbde859a7

Contents?: true

Size: 279 Bytes

Versions: 18

Compression:

Stored size: 279 Bytes

Contents

module Hamlit
  class HTML < Temple::HTML::Fast
    DEPRECATED_FORMATS = %i[html4 html5].freeze

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
hamlit-2.2.4 lib/hamlit/html.rb
hamlit-2.6.1 lib/hamlit/html.rb
hamlit-2.6.0 lib/hamlit/html.rb
hamlit-2.5.0 lib/hamlit/html.rb
hamlit-2.4.2 lib/hamlit/html.rb
hamlit-2.4.1 lib/hamlit/html.rb
hamlit-2.4.0 lib/hamlit/html.rb
hamlit-2.3.1 lib/hamlit/html.rb
hamlit-2.3.0 lib/hamlit/html.rb
hamlit-2.2.3 lib/hamlit/html.rb
hamlit-2.2.2 lib/hamlit/html.rb
hamlit-2.2.1 lib/hamlit/html.rb
hamlit-2.2.0 lib/hamlit/html.rb
hamlit-2.1.2 lib/hamlit/html.rb
hamlit-2.1.1 lib/hamlit/html.rb
hamlit-2.1.0 lib/hamlit/html.rb
hamlit-2.0.2 lib/hamlit/html.rb
hamlit-2.0.1 lib/hamlit/html.rb