<table class="table">
<tr>
{% for item in summary.titles %}
<th>{{ item }}</th>
{% endfor %}
</tr>
<tr>
{% for title in summary.titles %}
<td> {{ summary.data[title] }}</td>
{% endfor %}
</tr>
</table>
Is it possible to get data in a similar way?
Exception Value:
Could not parse the remainder: '[title]' from 'summary.data[title]'
var summary = {
data:{
title1: 1,
title2:2
},
titles: [title1, title2]
}