Class: Warped::Emails::Layouts::Cta

Inherits:
Base
  • Object
show all
Defined in:
lib/warped/emails/components/layouts/cta.rb

Instance Attribute Summary

Attributes inherited from Base

#view_context

Instance Method Summary collapse

Methods inherited from Base

#content, #helpers, #render_in

Methods included from Styleable

#base_styles, #default_variants, included, #style, #variants

Methods included from Slottable

included, #slots

Instance Method Details

#templateObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/warped/emails/components/layouts/cta.rb', line 20

def template
  tag.table(style: style(:card)) do
    tag.tbody do
      tag.tr do
        tag.td(style:) do
          concat title
          concat render(Spacer.new)
          concat body
          concat render(Spacer.new)
          concat button
        end
      end
    end
  end
end