We have just created a tag like that in our dynamicforms library. It's called "extendtemplateblock". Feel free to use or copy, but it doesn't look like it's going to be accepted in Django itself.
We tried to keep API similar to the "include" tag, so it should be easy to use.
You can choose to only pull one block from your extended
template ("block" parameter) or define any of the blocks in it
using "block" nested blocks.
LP,
Jure
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/ff75ddef-2267-44f5-89f7-9b8ebf1460efn%40googlegroups.com.
Aztec,
Just look in the dynamicforms/templates folder: all templates for input fields are built using this tag in its various forms. There's plenty of examples there. And yes, it's exactly what you asked for.
LP,
Jure
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/109df365-750f-483d-8043-cf8c7c360c5en%40googlegroups.com.
Curtis - This is nested block right? what i want is like tag include (can be called more than once) but with children.
Jure - I've read the documentation, can you give me a sample code? I am confusedHmmm, but i think this feature is very useful (for card, container, wrapper, and anythink with different content) and each component can be included in other components, thats awesome. I think this feature should be in django core, but, yes, I understand.