diff --git a/app/routes.py b/app/routes.py index 6058f1d..ca50734 100644 --- a/app/routes.py +++ b/app/routes.py @@ -13,6 +13,7 @@ from flask import Flask, render_template, request from .app import app + @app.route("/") def home(): """home route""" @@ -23,7 +24,15 @@ def about(): """home route""" return render_template("about.html") -@app.route("/corpora") +@app.route("/actes") def corpora_all(): """copora all route""" return render_template("corpora_all.html") + +@app.route("/actes/") # dont put a slash at the end +def actes(house): + """copora all route""" + house = "bourbon" + return render_template("corpus.html") + + diff --git a/app/templates/container.html b/app/templates/container.html index 7bb6afd..6033243 100644 --- a/app/templates/container.html +++ b/app/templates/container.html @@ -111,10 +111,10 @@ ================================================== --> - - - - - + + + + \ No newline at end of file diff --git a/app/templates/corpora_all.html b/app/templates/corpora_all.html index 235c2f5..1ff7afb 100644 --- a/app/templates/corpora_all.html +++ b/app/templates/corpora_all.html @@ -1,6 +1,10 @@ {% extends "container.html" %} {% block corps %}
- CORPUS +

Corpus

+

Corpus disponibles :

+
{% endblock %} \ No newline at end of file diff --git a/app/templates/corpus_bourbon.html b/app/templates/corpus_bourbon.html deleted file mode 100644 index d22303f..0000000 --- a/app/templates/corpus_bourbon.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends "container.html" %} -{% block corps %} -
- CORPUS BOURBON -
-{% endblock %} \ No newline at end of file diff --git a/app/templates/home.html b/app/templates/home.html index c7acadc..286cf41 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -61,7 +61,7 @@

Corpus des actes de la maison de Bourbon.

Louis II et Anne Dauphine

Charles Ier et Agnès de Bourgogne

-

Accéder aux actes »

+

Accéder aux actes »