Adding slots without block argument reference #1324
-
Currently, slots are added in the following way (example written in haml): = render ExampleComponent.new do |comp|
- comp.slot(someProp: "a")
- comp.slot(someProp: "b") IMO, I'd would be nice to somehow also implement this without needed to call = render ExampleComponent.new do
- slot(someProp: "a")
- slot(someProp: "b") Is there somehow a way of achieving this behavior with the current implantation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I guess the aim here would be for the block passed to I'd be open to seeing it implemented. The |
Beta Was this translation helpful? Give feedback.
-
@boardfish is right that we'd probably need to change the receiver of the block, which I think would be more trouble than it's worth. |
Beta Was this translation helpful? Give feedback.
@boardfish is right that we'd probably need to change the receiver of the block, which I think would be more trouble than it's worth.