Roy, I'd love to help but I don't think I understand the problem (and I am too lazy to set up the inheritance chain myself). You say it seems not to work? When does it fail?
Try putting a little content into each template (maybe the template's name, in an h1 tag). Then how far does the rendering get? Is the base rendered? What about the child? What about the unnamed, dynamically included template? You'll probably get a better response if you have some good test data like that. Most of us (me, anyway) are too lazy to set it up ourselves, and you might figure out the problem yourself during that testing. Sorry I didn't have a quick answer, hope that helps. Alex On Mar 2, 5:41 pm, Roy <royt...@gmail.com> wrote: > *bump* anyone have any idea on this? > > On Mar 1, 9:17 pm, Roy <royt...@gmail.com> wrote: > > > Hi group, > > > Say I have the ff in my base.html: > > > {% include template_name %} > > > And template_name is a variable that resolves to some template path, > > let's say the file at that path contains the following: > > > {% block content %}Place content here{% endblock %} > > > Now, if I have another template child.html that extends base.html, and > > it contains the ff: > > > {% extends "base.html" %} > > > {% block content %}My content!{% endblock %} > > > So, my intent is that if I render to child.html, I would be able to > > replace the content block in the template included in the base. It > > seems not to work though. Anyone have any idea how I can do this? > > > fyi, the intent is to generate the markup structure of the page > > dynamically, hence the template_name variable can be changed to render > > the page in different appearances or formats. > > > Thanks! > > > Roy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---