File size: 287 Bytes
cf75111
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from flask import Flask, render_template
from app.models.page import Page

app = Flask(__name__)

@app.route("/")
def index():
    page = Page("Sample Page", "This is a sample page.")
    return render_template("index.html", page=page)

if __name__ == "__main__":
    app.run(debug=True)