Module: Primrose::Components::Body

Defined in:
lib/primrose/components/body.rb

Constant Summary collapse

TEMPLATE =
<<~ERB
  <body>
    <%= @content %>
  </body>
ERB

Instance Method Summary collapse

Instance Method Details

#initialize(content:) ⇒ Object



10
11
12
13
# File 'lib/primrose/components/body.rb', line 10

def initialize(content:)
  @content = content
  super()
end

#renderObject



15
16
17
# File 'lib/primrose/components/body.rb', line 15

def render
  Prim.render(TEMPLATE, self)
end