Combining ng repeat and django template language
<p>I have a table that will have varying columns over time and I want my django view to support those changing columns.  I also want to use ng-repeat to do some fancy stuff with it such as filtering and other things.  However I am having trouble combining the two.</p>

<p>I am passing in the arbitrary <code>col_names</code> with django template language.  <code>packages</code> is also sent in with the django template language and is essentially a json array where each row is a <code>dict</code> mapping <code>col_name</code> to some value.  i.e.</p>

<pre><code>$scope.packages = [{'col1': 'row1col1', 'col2': 'row2val2'}, {'col1': 'row2col1' .... 
</code></pre>

<p>However when I go to put in the rows using <code>packages</code> I can't "nest" my templates.  Is there a way to grab arbitrary values out of each row in `packages?</p>

<pre><code>&lt;input ng-model="search" placeholder="Search"&gt;
        &lt;table style="width:100%;"&gt;
            &lt;thead&gt;
                &lt;tr&gt;
                    &lt;th&gt;Permanent Column 1&lt;/th&gt;
                    &lt;th&gt;Permanent Column 2&lt;/th&gt;
                    {# changing columns #}
                    {% for col_name in col_names %}
                        &lt;th&gt;{{ col_name }}&lt;/th&gt;
                    {% endfor %}
                &lt;/tr&gt;
            &lt;/thead&gt;
            &lt;tbody&gt;
                &lt;tr ng-repeat="package in packages | filter:searchPackage"&gt;
                    {% for col_name in columns %}
                        &lt;td&gt;{{package.{{ col_name }}}}&lt;/td&gt;  DOESN'T WORK!
                    {% endfor %}
                &lt;/tr&gt;
            &lt;/tbody&gt;
        &lt;/table&gt;
</code></pre>

<p>In that problem line I essentially want to have <code>{{package.ACTUAL_ARBITRARY_COL_NAME}}</code> but I don't know how to do that programmatically</p>