Hello, Does anyone has an suggestion how te create an fill a 'dynamic template'?
Current situation: index.html: <html> <head></head> <body> <div id="menu">{% include 'nav.html' %}</div> <div id="content">{% include 'agenda.html' %}</div> </body> </html> with a view: from django.shortcuts import render_to_response def index(request): return render_to_response('index.html', {'menu_active': 'home',}) but I want to achieve something like: <html> <head></head> <body> <div id="menu">{{template_nav}}</div> <div id="content">{{template_agenda}}</div> </body> </html> with a view like (not working): from django.shortcuts import render_to_response def index(request): return render_to_response('index.html', {'menu_active': 'home','template_nav':nav.html,'template_content':agenda.html}) So I have one 'main template' where I can include different html files with I maintain in my view. Someone a suggestion? Niels --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---