Sha256: 41b633df0285f6c91e1e4a67b23c14fa9be8af1f0b35d925dcb74fd4d43684b2

Contents?: true

Size: 271 Bytes

Versions: 11

Compression:

Stored size: 271 Bytes

Contents

module BootstrapEmail
  module Converter
    class Button < Base
      def build
        each_node('.btn') do |node|
          node.replace(template('table', classes: node['class'], contents: node.delete('class') && node.to_html))
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bootstrap-email-1.1.4 lib/bootstrap-email/converters/button.rb
bootstrap-email-1.1.3 lib/bootstrap-email/converters/button.rb
bootstrap-email-1.1.2 lib/bootstrap-email/converters/button.rb
bootstrap-email-1.1.1 lib/bootstrap-email/converters/button.rb
bootstrap-email-1.1.0 lib/bootstrap-email/converters/button.rb
bootstrap-email-1.0.2 lib/bootstrap-email/converters/button.rb
bootstrap-email-1.0.1 lib/bootstrap-email/converters/button.rb
bootstrap-email-1.0.0 lib/bootstrap-email/converters/button.rb
bootstrap-email-1.0.0.alpha4 lib/bootstrap-email/converters/button.rb
bootstrap-email-1.0.0.alpha3.1 lib/bootstrap-email/converters/button.rb
bootstrap-email-1.0.0.alpha3 lib/bootstrap-email/converters/button.rb