This is a newbie question! If this question has already been posted, kindly point me to the correct thread!
I've written a few inclusion_tags in django so far and like the way it works. However I would like to make things more dynamic because i want the same HTML markup and classes with a different content. <div class="block"> <div class="header"> </div <div class="content"> {% content %} </div> </div> I put the django-template tag there as an indication of where i would be wanting the content. (I guess this might be like a custom server control in asp.net with a template inside it?). I could fix my problem by copy-pasting the HTML a few times in a row, but am looking for a more DRY approach. I'm thinking more along the lines of a custom tag named 'instance' for example: {% instance block %} {% include_feed "http://localhost:8080/feeds/news/" 5 feeds/ test.html %} {% endinstance %} which would load a feed inside the 'content' div. Any other feeds or other content such as latest news, latest members etc. would be written with the same {% instance %} tag but loading different content. Am i completely missing something or is there a widely used way to do this? Thank you, christian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---