Sure in most cases, but is there a way to fake setting the context of the included template? If I'm iterating over a set of comments and include "comment.html", can I specify which comment to render?
Thanks! Abhik On Nov 15, 9:59 am, Dennis Kaarsemaker <[email protected]> wrote: > On zo, 2009-11-15 at 09:26 -0800, apramanik wrote: > > > I'm migrating to Django from Ruby on Rails. In the template language > > for Django, I've been looking for something similar to RoR's > > render :partial but can't find anything. It allows you write a > > template for a snippet of code rather than an entire page. I found it > > very useful when I was displaying objects in several different pages, > > but wanted the look and layout to stay the same. Is there any way I > > can reproduce that sort of functionality? > > You mean something like the include tag? > > http://docs.djangoproject.com/en/dev/ref/templates/builtins/#include > > -- > Dennis K. > > The universe tends towards maximum irony. Don't push it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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=.

