How do i pass jinja2 data into javascript. I have a Flask REST url as /logs/ I am trying use .getJSON() to query the above URL and hence would want to pass the jinja2 data which has the testcasename to .getJSON function.
sample code -
alert({{name}});
It dint work. Any suggestions please?
{{ name|safe }}
should work – Jakob Bowyer Feb 7 '14 at 11:12