1<script src="{{url_for('static', filename='somejavascriptfile.js')}}"></script>
2
1<!-- Put in HTML file-->
2
3<!--
4JS
5parent_dir is reletive to Flask app.py dir
6meaning: /main/app.py
7 /main/parent_dir/file.js
8-->
9<script src="{{url_for('parent_dir', filename='file.js')}}"></script>
10
11<!--
12CSS
13parent_dir is reletive to Flask app.py dir
14meaning: /main/app.py
15 /main/parent_dir/file.css
16-->
17 <link href="{{ url_for("parent_dir",filename="file.css") }}" rel="stylesheet">