html - Django language for dynamic fields -
<table class="table"> <tr> {% item in summary.titles %} <th>{{ item }}</th> {% endfor %} </tr> <tr> {% title in summary.titles %} <td> {{ summary.data[title] }}</td> {% endfor %} </tr> </table>
is possible data in similar way?
exception value:
could not parse remainder: '[title]' 'summary.data[title]'
var summary = { data:{ title1: 1, title2:2 }, titles: [title1, title2] }
wiki
Comments
Post a Comment