Sha256: bf5e558e97a0f9ed335aa63062b2818c79c0d5f6ca4ccab68d8fd0d471217e0f

Contents?: true

Size: 416 Bytes

Versions: 5

Compression:

Stored size: 416 Bytes

Contents

module BootstrapEmail
  module Component
    class Container < Base
      def build
        each_node('.container') do |node|
          node.replace(template('container', classes: node['class'], contents: node.inner_html))
        end
        each_node('.container-fluid') do |node|
          node.replace(template('table', classes: node['class'], contents: node.inner_html))
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bootstrap-email-1.0.0.alpha2.1 lib/bootstrap-email/components/container.rb
bootstrap-email-1.0.0.alpha2 lib/bootstrap-email/components/container.rb
bootstrap-email-1.0.0.alpha1.2 lib/bootstrap-email/components/container.rb
bootstrap-email-1.0.0.alpha1.1 lib/bootstrap-email/components/container.rb
bootstrap-email-1.0.0.alpha1 lib/bootstrap-email/components/container.rb