On Aug 31, 4:56 am, ips006 <ips...@gmail.com> wrote: > Is it possible to have block tags inside inclusion template tags > overwrite the block tags in parent templates? > > I have a chunk of html generated by an inclusion tag, and I would like > to assign a CSS file with it. I would like to be able to append to an > extracss block in base.html (which has links to all css files). > Currently I cannot do this inside inclusion tags as the {% block %} > tags are simply ignored.
Well, no, you can't do that. An inclusion tag just renders a template and includes it, it's not part of the inheritance chain (how could that work if you had multiple tags?) You might be able to do something by writing a custom tag that sets variables in the context, as described in the documentation, rather than using the inclusion_tag shortcut. -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---