diff --git a/app.py b/app.py index 35a42fa..76fb3ca 100644 --- a/app.py +++ b/app.py @@ -2,11 +2,11 @@ from flask import Flask, request, render_template app = Flask(__name__) @app.route('/') -def index(): +def baseform(): return render_template('modulo.html') @app.route('/area_rettangolo', methods=['POST']) -def rectarea(): +def saluta(): area = int(request.form['base']) * int(request.form['altezza']) return render_template('area.html', area_calcolata=area) diff --git a/templates/modulo.html b/templates/modulo.html index b2c04d8..262c71b 100644 --- a/templates/modulo.html +++ b/templates/modulo.html @@ -1,31 +1,14 @@ - -
- - - --
- - - - - +