-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
29 lines (20 loc) · 734 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""
* Projecr Name : Portfolio Website
* Project repository link : https://github.com/sashuu69/portfolio_site
* File name : app.py
* Author : Sashwat K
* Purpose : Host portfolio website using Python Flask
"""
import json
from flask import Flask, render_template
with open("data/index.json", encoding="UTF-8") as JSONDATA:
DICTDATA = json.load(JSONDATA)
app = Flask(__name__, template_folder="template")
@app.route("/")
def index() -> str:
"""Definition to render root HTML page"""
return render_template('index.html', **DICTDATA)
@app.route("/bio_instagram")
def instgram_bio_page() -> str:
"""Definition to render Instagram Bio HTML page"""
return render_template("instagram_bio.html", **DICTDATA)