Sha256: 4ac9e1f12bd39ed0eecf666b3d112c1c25e596daab2132fb86666080be4b1407

Contents?: true

Size: 387 Bytes

Versions: 11

Compression:

Stored size: 387 Bytes

Contents

module BootstrapEmail
  module Converter
    class Block < Base
      def build
        each_node('block, .to-table') do |node|
          # add .to-table if it's not already there
          class_name = node['class'].to_s.split << 'to-table'
          node.replace(template('table', classes: class_name.uniq.join(' '), contents: node.inner_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/block.rb
bootstrap-email-1.1.3 lib/bootstrap-email/converters/block.rb
bootstrap-email-1.1.2 lib/bootstrap-email/converters/block.rb
bootstrap-email-1.1.1 lib/bootstrap-email/converters/block.rb
bootstrap-email-1.1.0 lib/bootstrap-email/converters/block.rb
bootstrap-email-1.0.2 lib/bootstrap-email/converters/block.rb
bootstrap-email-1.0.1 lib/bootstrap-email/converters/block.rb
bootstrap-email-1.0.0 lib/bootstrap-email/converters/block.rb
bootstrap-email-1.0.0.alpha4 lib/bootstrap-email/converters/block.rb
bootstrap-email-1.0.0.alpha3.1 lib/bootstrap-email/converters/block.rb
bootstrap-email-1.0.0.alpha3 lib/bootstrap-email/converters/block.rb