Python/flask/Jinja2 And Json
'I am using Flask,Jinja2,higHighcharts' Example (Python/Flask): @app.route('/column/') def column(): data=[{'data': [49.9, 54.4], 'name': 'Tokyo'}, {'data': [42, 30.4], 'name':
Solution 1:
Mark your data as safe with Markup
:
Marks a string as being safe for inclusion in HTML/XML output without needing to be escaped.
Or change {{ data }}
to {{ data|tojson|safe }}
.
Post a Comment for "Python/flask/Jinja2 And Json"