title: Dynamically change Javascript with Flask
body: <p>I want to dynamically change a JavaScript file in the static folder of my Flask application. </p>
  
  <p>I'm aware that Jinja2 can dynamically change my HTML file with <code>{{ var1 }}</code> and <code>render_template(file.html, var1 = x)</code>, but I want Flask to reach into the scripts the HTML imports and change them as well, without the JavaScript having to be in the HTML template. </p>
  
  <p>Does Flask support this, or do I just have to put the JavaScript I want to change dynamically into the HTML file and use <code>render_template</code>?</p>