> This template code: > > <div> > {% for entry in entries %} > <p>{{ entry.title }}</p> > {% endfor %} > </div> > > looks like this when rendered: > > <div> > > <p>Title 1</p> > > <p>Title 1</p> > > <p>Title 1</p> > > </div>
While it goes against my aesthetic tastes for making easy-to-read templates (I much prefer my templates look like yours), you _can_ use the following: <div>{% for entry in entries %} <p>{{ entry.title }}</p>{% endfor %} </div> which gets you the aesthetic output with minimal fuss. -tim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---