You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#!/usr/bin/python
|
|
|
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
author : Jean-Damien Généro
|
|
|
|
|
date : 2022-10-01
|
|
|
|
|
update :
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# import des librairie
|
|
|
|
|
from flask import Flask, render_template, request
|
|
|
|
|
from .app import app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route("/")
|
|
|
|
|
def home():
|
|
|
|
|
"""home route"""
|
|
|
|
|
return render_template("home.html")
|
|
|
|
|
|
|
|
|
|
@app.route("/about/")
|
|
|
|
|
def about():
|
|
|
|
|
"""home route"""
|
|
|
|
|
return render_template("about.html")
|
|
|
|
|
|
|
|
|
|
@app.route("/actes/")
|
|
|
|
|
def corpora_all():
|
|
|
|
|
"""copora all route"""
|
|
|
|
|
return render_template("corpora_all.html")
|
|
|
|
|
|
|
|
|
|
@app.route("/actes/<house>") # dont put a slash at the end
|
|
|
|
|
def actes(house):
|
|
|
|
|
"""actes route"""
|
|
|
|
|
return render_template("corpus.html", house=house)
|
|
|
|
|
|
|
|
|
|
@app.route("/actes/<house>/<prince>") # dont put a slash at the end
|
|
|
|
|
def prince_corpus(house=None, prince=None):
|
|
|
|
|
"""copora prince route"""
|
|
|
|
|
return render_template("prince_corpus.html", house=house, prince=prince)
|
|
|
|
|
|
|
|
|
|
|