@app.route('/')
@app.route('/home')
def home_view():
 return render_template('index.html', title='Home Page', year=datetime.now().year)

@ app . route ( '/' ) @ app . route ( '/home' ) def home_view ( ) : return render_template ( 'index.html' , title = 'Home Page' , year = datetime . now ( ) . year )
renders the home page .