Replies: 2 comments
-
I appreciate your goal of simplifying the syntax with this suggestion, but I don't think this is the right way. I'm imagining a developer new to django-components, looking at a mature code-base that uses this library. Looking at the example above, why does the content go in the second block, and not the first one? You just have to know that "children" is a special name, that means something different from the other names. I'd like to avoid that kind of library-specific knowledge if possible. Often this means being explicit, and repeating yourself a bit, but I think it's worth it because if acts as documentation for the next developer (which could be myself months later). Appreciate your suggestions! |
Beta Was this translation helpful? Give feedback.
-
Closing as this seems resolved. For anyone who comes across this thread, the current way (May 2024) to define a default slot, is to append a |
Beta Was this translation helpful? Give feedback.
-
For the component:
With usage:
It would be nice to have this declared/used like:
I know I put a bunch of different ideas up - let me know if any of them sound like directions you are interested in going and I can put together a pr.
Beta Was this translation helpful? Give feedback.
All reactions