Class: Warped::Emails::Layouts::Main
- Defined in:
- lib/warped/emails/components/layouts/main.rb
Instance Attribute Summary
Attributes inherited from Base
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
Instance Method Details
#template ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/warped/emails/components/layouts/main.rb', line 22 def template(&) tag.div(style:) do content_tag(:div, style: "vertical-align: middle;") do concat tag.header(header) concat tag.main(main) concat tag.() end end end |