Compare commits
No commits in common. "c68b0d527eb7556457b6233a65e310cc4c5e2d7a" and "c6381538edeb138a4c65fdbdf6522a11e113a705" have entirely different histories.
c68b0d527e
...
c6381538ed
9
app.py
9
app.py
@ -1,9 +0,0 @@
|
|||||||
# Fichier principal
|
|
||||||
from flask import Flask, escape, request
|
|
||||||
import pages
|
|
||||||
|
|
||||||
app = Flask(__name__)
|
|
||||||
|
|
||||||
@app.route('/')
|
|
||||||
def main():
|
|
||||||
return pages.main()
|
|
@ -1,8 +0,0 @@
|
|||||||
### Fonctions communes
|
|
||||||
|
|
||||||
def read(path):
|
|
||||||
# Retourne le contenu texte d'un fichier
|
|
||||||
f = open(path,'r')
|
|
||||||
result = f.read()
|
|
||||||
f.close()
|
|
||||||
return result
|
|
4
pages.py
4
pages.py
@ -1,4 +0,0 @@
|
|||||||
import definitions as lib
|
|
||||||
|
|
||||||
def main():
|
|
||||||
return lib.read("templates/main.html")
|
|
@ -1,3 +0,0 @@
|
|||||||
<h1>Bienvenue !</h1>
|
|
||||||
|
|
||||||
<p>Ceci est la page d'accueil !</p>
|
|
Loading…
Reference in New Issue
Block a user