yhara/ovto

How to specify the content of a sub component

yhara opened this issue · 0 comments

yhara commented

How about allowing passing block to sub components? eg.

o SubComp do ... end

class SubComp < Ovto::Component
  def render(&block)
    o '.SubComp', &block 
  end
end