How to iterate through a dictionary passed from a Python / Tornado handler to a Tornado template?
I tried both
<div id="statistics-table"> {% for key, value in statistics %} {{key}} : {{value['number']}} {% end %} </div>
but it doesnโt work, where statistics is a dictionary
statistics = { 1 : {'number' : 2}, 2 : {'number' : 8}}
source share