Is it possible to make one sub-template inherit a div with dynamic content
from an upper level template?
For eg., Template2 extends Template1. Within Template1, there is a div XXX
that depends on a variable {{ var1 }}. This variable is passed to the view *def
view1*, which renders Template 1. When Template2 is rendered, this div XXX
is not rendered, because of the dynamic content.
Is there a DRY (Don't Repeat Yourself) way to make this inheritance
possible?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/497e48c4-3bd8-4f14-84df-b70146712e77n%40googlegroups.com.