from app import app
from flask import render_template

import forms

@app.route('/')
@app.route('/index')
def index():  # put application's code here
    return render_template('index.html', current_title ='Custom Title')

@app.route('/about', methods =['GET','POST'])
def about():
    form = forms.AddTaskForm()
    if form.validate_on_submit():
        print('Submitted title', form.title.data)
        return render_template('about.html' , form =form ,title= form.title.data)
    return render_template('about.html', form=form)
