I am trying to create a "bootstrap tabs" component. I was thinking of passing the number and names of the tab links as an array (easy).
Now the problem is that I need the tab content to be a loop over that same array to create a dynamic named slots. This is not working and always returning the slot name rather than the slot content.
Thank you. I liked the idea of associative array (tab_name=>slot).
I applied it but that didn't fix the problem. My problem was that in the slot it prints the slot name rather than the slot content.
I found out that I should add double $ before the slot name like this: