You are not limited to generating HTML files with Jinja. You can generate a JS file that uses a {{ variable }}.
Let's say i need to have the javascript in a seperate file, then how can i add a {{variable}} for example in the javascript file without having to use a <script> tag in the HTML?
Is that even possible with jinja?
How to use jinja tags inside Javascript file?