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.

39 lines
687 B
Python

#!/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):
"""copora all route"""
house = "bourbon"
return render_template("corpus.html")