Sha256: 5f718d0643e8855c3e0b08c0fa5d0ee26b8d78f46b9fec0b739f89dc77196792
Contents?: true
Size: 379 Bytes
Versions: 5
Compression:
Stored size: 379 Bytes
Contents
module BootstrapEmail module Component class Color < Base def build each_node('*[class*=bg-]') do |node| next unless ['div'].include?(node.name) # only do automatic thing for div node.replace(template('table', classes: "#{node['class']} w-full", contents: node.delete('class') && node.inner_html)) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems