title: Unable to pass jinja2 variables into javascript snippet
body: <p>How do i pass jinja2 data into javascript. 
  I have a Flask REST url as <code>/logs/&lt;test_case_name&gt;</code>
  I am trying use <code>.getJSON()</code> to query the above URL and hence would want to pass the jinja2 data which has the testcasename to <code>.getJSON</code> function.</p>
  
  <p>sample code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    alert({{name}});
  &lt;/script&gt;
  </code></pre>
  
  <p>It doesn't work.
  Any suggestions please?</p>