Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>
Add a basic about page
src/blueprints/basic.py | 5 ++++- src/templates/about.html | 7 +++++++
diff --git a/src/blueprints/basic.py b/src/blueprints/basic.py index 89cb65854af1a4f72abee31f4dea20f8a5aa773d..d7a112501001f0c612d65024603733d94c932bf1 100644 --- a/src/blueprints/basic.py +++ b/src/blueprints/basic.py @@ -1,7 +1,10 @@ from flask import Blueprint, render_template - basic = Blueprint('basic', __name__) @basic.route('/') def index(): return render_template('index.html', title = "Feira Virtual Bem da Terra") + +@basic.route('/about') +def about(): + return render_template('about.html', title = "Sobre a Feira Virtual Bem da Terra") diff --git a/src/templates/about.html b/src/templates/about.html new file mode 100644 index 0000000000000000000000000000000000000000..2b34d97e063a620a1a6584ea14bcf5ae70343ccd --- /dev/null +++ b/src/templates/about.html @@ -0,0 +1,7 @@ +{% extends 'layout.html' %} + +{% block body %} + +<h1> Feira Virtual Bem da Terra </h1> + +{% endblock %}