I want to dynamically change a JavaScript file in the static folder of my Flask application.
I'm aware that Jinja2 can dynamically change my HTML file with {{ var1 }} and render_template(file.html, var1 = x), 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.
Does Flask support this, or do I just have to put the JavaScript I want to change dynamically into the HTML file and use render_template?