title: How to pass JavaScript variable to function in Jinja tag
body: <pre><code>&lt;script&gt;
         function myFunction() {
                  var name = "some_string";
                  var display = "{{ python_function(name) }}";
                  alert(display);
         }
  &lt;/script&gt;
  </code></pre>
  
  <p>Above Javascript is writen in jinja2 template. It is supposed to pass javascript variable (i.e. var name) value to python function in macro. I know above code won't solve my purpose as I am not passing javascript variable value correctly to macro. Does anybody have method on passing javascript variable to macro in jinja2 template? </p>