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
On 28. 01. 21 07:33, Aztec Rabbit wrote:
Hi,
I think template tag like in JSX is very useful, for example:
> card.html
<div>
<h1>{{ title }}</h1>
<p>{{ component.children }}</p>
</div>
> index.html
{% component './card.html' with title='Foo' %}
Bar
{% endcomponent %}
--
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-developers+unsubscr...@googlegroups.com
<mailto:django-developers+unsubscr...@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
<https://groups.google.com/d/msgid/django-developers/ff75ddef-2267-44f5-89f7-9b8ebf1460efn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/c5dbb94b-8b3a-ef27-92b6-c90018f2bc85%40gmail.com.