I want to host 3 files that are in /Project/templates in app.py using the Flask framework. Here is what it looks like.
Project
├── templates
│ ├── index.html
│ ├── index.js
| └── style.css
├── app.py
How do I host these files in app.py using the Flask framework? Here is my attempt at it, but it is giving me a blank page.
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index_html():
return render_template('index.html')
@app.route('/index.js')
def index_js():
return render_template('index.js')
@app.route('/style.css')
def style_css():
return render_template('style.css')
if __name__ == '__main__':
app.run(debug=True)