Module: Porous::Component::Render

Included in:
Porous::Component
Defined in:
lib/porous/component/render.rb

Instance Method Summary collapse

Instance Method Details

#before_renderObject



10
# File 'lib/porous/component/render.rb', line 10

def before_render; end

#renderObject

Raises:



6
7
8
# File 'lib/porous/component/render.rb', line 6

def render
  raise Error, "Implement #render in #{self.class} component"
end

#render_virtual_domObject



12
13
14
15
16
17
# File 'lib/porous/component/render.rb', line 12

def render_virtual_dom
  before_render
  @__virtual_nodes__ = []
  render
  to_vnode
end