Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify the content of a sub component #16

Closed
yhara opened this issue Feb 10, 2020 · 0 comments
Closed

How to specify the content of a sub component #16

yhara opened this issue Feb 10, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@yhara
Copy link
Owner

yhara commented Feb 10, 2020

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
@yhara yhara added the enhancement New feature or request label Feb 10, 2020
@yhara yhara closed this as completed in d5109d2 Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant