
@celsius.route('/', methods=['POST'])
def form_post():
    celsius = int(request.form['Celsius'])
    return convert(celsius)
    #return render_template('fahrenheit.html', input=celsius, output=fahrenheit)


@celsius.route('/<int:celsius>')
def convert(celsius):
    fahrenheit = ((celsius * 9) // 5 ) + 32
    return render_template('fahrenheit.html', input=celsius, output=fahrenheit)