title: Creating a Table of Context from a list of dicts using Django templates
body: <p>Say that I have the following dict list:</p>
  
  <pre><code>fruits = [
      {"Name": "Apple", "id": 1, "url": "/apple", "Desc": "Red or green skin with white flesh."},
      {"Name": "Pear", "id": 2, "url": "/pear", "Desc": "Green fruit with white flesh."},
      {"Name": "Coconut", "id": 3, "url": "/coco", "Desc": "Brown hairy shell with with flesh."}
  ]
  </code></pre>
  
  <p>and it's passed to the context of a Django template via a view. How would I go about building a Table of Context that looks something Like this?</p>
  
  <p><HR>
  <B>A</B><BR>
  <A HREF="/apple">Apple</A><BR>
  Red or green skin with white flesh.
  <BR>
  <BR>
  <B>C</B><BR>
  <A HREF="/coco">Coconut</A><BR>
  Brown hairy shell with with flesh.
  <BR>
  <BR>
  <B>P</B><BR>
  <A HREF="/pear">Pear</A><BR>
  Green fruit with white flesh..
  <BR>
  <HR></p>
  
  <p>I was thinking of doing something like this:</p>
  
  <pre><code>{% for fruit in fruits %}
      &lt;B&gt;{{ fruit.Name|first_letter_upper }}&lt;/B&gt;&lt;BR&gt;
      &lt;A HREF="{{ fruit.url }}"&gt;{{ fruit.Name }}&lt;/A&gt;&lt;BR&gt;
      {{ fruit.Desc }}&lt;BR&gt;
      {% if not forloop.last %}&lt;BR&gt;{% endif %}
  {% endfor %}
  </code></pre>
  
  <p>But then I would have to implement the custom filter "first_letter_upper". Not a big deal, but I'm just wondering if there's a simpler way to do that without having to use custom filters?</p>