title: Rendering a list as a 2-column html table in a django template
body: <p>I have an ordered list that I'm rendering as a 2-column html table in a Django template. In the table, the elements should be output so that the first (n+1)/2 elements are in the first column and the remainder are in the second column, as follows:</p>
  
  <pre><code>&lt;table&gt;
    &lt;tr&gt;
       &lt;td&gt;Elem 1&lt;/td&gt;
       &lt;td&gt;Elem 4&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Elem 2&lt;/td&gt;
      &lt;td&gt;Elem 5&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Elem 3&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Assuming that my elements are in the context as <code>{{ elems }}</code>, how could I reasonably accomplish this in a Django template?  </p>