Open pbi7521 opened 10 months ago
Hello,
A simple solution to this is to capture the slot into a variable before entering the component1
block, e.g.:
{% with inner_block=slots.inner_block %}
{% component1 %}
Some dummy content I would like to show
{% render_slot inner_block %}
{% endcomponent1 %}
{% endwith %}
This is really a wonderful package. I just love it. Makes my life so much easier.
I was wondering if you could agree with the following : it would be nice to have the ability to nest components and use their inner_block slots "normally". At the present moment, that generates a recursion error.
Here is an example
`component1 :
`
`component2 : {% component1 %}
Some dummy content I would like to show
{% render_slot slots.inner_block %} {% endcomponent1 %}`