I've run into a problem trying to use template tags in a child template where the tag tries to fill block content in the child template or the parent template. This is how it is set up:
base.html: {% block nav %}{% endblock %} child.html {% extends "base.html" %} {% load navigation %} {% navigation "products" "search" %} templatetags/navigation.py from django.template import Library, Node register = Library() @register.inclusion_tag( "navigation.html", takes_context=True ) def navigation( context, main_item, sub_item=None ): pass navigation.html: {% block nav %} <ul><li>nav goes here...</li></ul> {% endblock %} Relatively simple for now, more logic will be added at some point, otherwise I would just use a simple {% include %}. When run, the "nav goes here..." is nowhere to be found. Am I doing something wrong, or going about this in the wrong way? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---