Hey Gert, thanks for asking! That's a really interesting approach. The main thing it's missing IMO is the ability to pass chunks of markup into the component like you can do with Embeds. That's the main gist of the article, pushing to use Embeds instead of Includes.
I love the prop checking, that's a neat feature!
Overall, I think you're on to something and I'd love to see it further fleshed out 😄
Hey Gert, thanks for asking! That's a really interesting approach. The main thing it's missing IMO is the ability to pass chunks of markup into the component like you can do with Embeds. That's the main gist of the article, pushing to use Embeds instead of Includes.
I love the prop checking, that's a neat feature!
Overall, I think you're on to something and I'd love to see it further fleshed out 😄
Ah, interesting thought about passing markup! We do actually do that occassionally. for 'container'-like components:
with the Tab-component implementation looking like this:
Although that of course uses Includes instead of Embeds...
You could, for instance, include a
render_component()
orblock()
function call inside a component, like this:Is this sort of what you were thinking of? Do you have any suggestions for further fleshing out? Would love to see our approach find some traction 😉