webenginepy 1.2.2__tar.gz → 1.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- webenginepy-1.2.3/PKG-INFO +75 -0
- webenginepy-1.2.3/README.md +58 -0
- {webenginepy-1.2.2 → webenginepy-1.2.3}/pyproject.toml +3 -3
- webenginepy-1.2.3/webenginepy.egg-info/PKG-INFO +75 -0
- webenginepy-1.2.2/PKG-INFO +0 -95
- webenginepy-1.2.2/README.md +0 -78
- webenginepy-1.2.2/webenginepy.egg-info/PKG-INFO +0 -95
- {webenginepy-1.2.2 → webenginepy-1.2.3}/License +0 -0
- {webenginepy-1.2.2 → webenginepy-1.2.3}/setup.cfg +0 -0
- {webenginepy-1.2.2 → webenginepy-1.2.3}/webenginepy/__init__.py +0 -0
- {webenginepy-1.2.2 → webenginepy-1.2.3}/webenginepy/engine.py +0 -0
- {webenginepy-1.2.2 → webenginepy-1.2.3}/webenginepy.egg-info/SOURCES.txt +0 -0
- {webenginepy-1.2.2 → webenginepy-1.2.3}/webenginepy.egg-info/dependency_links.txt +0 -0
- {webenginepy-1.2.2 → webenginepy-1.2.3}/webenginepy.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: webenginepy
|
|
3
|
+
Version: 1.2.3
|
|
4
|
+
Summary: Mini moteur web Python pour créer des sites web ultra simples sans framework
|
|
5
|
+
Author-email: GabiMinecraft02 <gabrielmeresse09@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://pypi.org/project/webenginepy/
|
|
8
|
+
Project-URL: Source, https://pypi.org/project/webenginepy/
|
|
9
|
+
Keywords: web,engine,http,site,minimal
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.7
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: License
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# WebEnginePy
|
|
19
|
+
|
|
20
|
+
**WebEnginePy** est un module Python ultra simple conçu pour :
|
|
21
|
+
|
|
22
|
+
- Les débutants
|
|
23
|
+
- Les petits sites web
|
|
24
|
+
- Créer un service HTTP sans framework complexe
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## installation
|
|
29
|
+
pip install webenginepy
|
|
30
|
+
|
|
31
|
+
### minimun
|
|
32
|
+
python <python 3.7
|
|
33
|
+
recommendé <python 3.8
|
|
34
|
+
|
|
35
|
+
## Fonctionnalités principales
|
|
36
|
+
|
|
37
|
+
- **`web.app`** : Déclare une page HTML (application)
|
|
38
|
+
- **`web.route`** : Définit des routes pour boutons, fichiers statiques, etc.
|
|
39
|
+
- **`web.tool`** : Ajoute des outils ou scripts Python qui modifient le HTML
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## structure
|
|
44
|
+
engine.py (fichier principal)
|
|
45
|
+
index.html (page principale)
|
|
46
|
+
pages/ (pages secondaires)
|
|
47
|
+
server/ (fichiers statiques)
|
|
48
|
+
tools/ (outils)
|
|
49
|
+
|
|
50
|
+
## notes
|
|
51
|
+
Les fichiers statiques doivent être accessibles via web.route("server/nom_du_fichier")
|
|
52
|
+
|
|
53
|
+
Les outils Python doivent définir une fonction apply(html) qui reçoit le HTML et retourne le HTML modifié
|
|
54
|
+
|
|
55
|
+
Le serveur supporte plusieurs requêtes simultanées grâce au multithreading et au cache pour accélérer le chargement
|
|
56
|
+
|
|
57
|
+
## Exemple d’utilisation
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
import webenginepy as web
|
|
61
|
+
|
|
62
|
+
# Page principale
|
|
63
|
+
with web.app('/', "index.html"):
|
|
64
|
+
web.route("server/style.css") # CSS statique
|
|
65
|
+
web.route("button:Dashboard", "/dashboard") # bouton vers dashboard
|
|
66
|
+
web.tool("hello") # outil Python pour injecter du contenu
|
|
67
|
+
|
|
68
|
+
# Page secondaire
|
|
69
|
+
with web.app('/dashboard', "pages/dashboard.html"):
|
|
70
|
+
web.route("server/style2.css")
|
|
71
|
+
web.route("button:Accueil", "/") # bouton vers page principale
|
|
72
|
+
|
|
73
|
+
# Lancer le serveur
|
|
74
|
+
web.run(port=5000, host="0.0.0.0")
|
|
75
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# WebEnginePy
|
|
2
|
+
|
|
3
|
+
**WebEnginePy** est un module Python ultra simple conçu pour :
|
|
4
|
+
|
|
5
|
+
- Les débutants
|
|
6
|
+
- Les petits sites web
|
|
7
|
+
- Créer un service HTTP sans framework complexe
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## installation
|
|
12
|
+
pip install webenginepy
|
|
13
|
+
|
|
14
|
+
### minimun
|
|
15
|
+
python <python 3.7
|
|
16
|
+
recommendé <python 3.8
|
|
17
|
+
|
|
18
|
+
## Fonctionnalités principales
|
|
19
|
+
|
|
20
|
+
- **`web.app`** : Déclare une page HTML (application)
|
|
21
|
+
- **`web.route`** : Définit des routes pour boutons, fichiers statiques, etc.
|
|
22
|
+
- **`web.tool`** : Ajoute des outils ou scripts Python qui modifient le HTML
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## structure
|
|
27
|
+
engine.py (fichier principal)
|
|
28
|
+
index.html (page principale)
|
|
29
|
+
pages/ (pages secondaires)
|
|
30
|
+
server/ (fichiers statiques)
|
|
31
|
+
tools/ (outils)
|
|
32
|
+
|
|
33
|
+
## notes
|
|
34
|
+
Les fichiers statiques doivent être accessibles via web.route("server/nom_du_fichier")
|
|
35
|
+
|
|
36
|
+
Les outils Python doivent définir une fonction apply(html) qui reçoit le HTML et retourne le HTML modifié
|
|
37
|
+
|
|
38
|
+
Le serveur supporte plusieurs requêtes simultanées grâce au multithreading et au cache pour accélérer le chargement
|
|
39
|
+
|
|
40
|
+
## Exemple d’utilisation
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
import webenginepy as web
|
|
44
|
+
|
|
45
|
+
# Page principale
|
|
46
|
+
with web.app('/', "index.html"):
|
|
47
|
+
web.route("server/style.css") # CSS statique
|
|
48
|
+
web.route("button:Dashboard", "/dashboard") # bouton vers dashboard
|
|
49
|
+
web.tool("hello") # outil Python pour injecter du contenu
|
|
50
|
+
|
|
51
|
+
# Page secondaire
|
|
52
|
+
with web.app('/dashboard', "pages/dashboard.html"):
|
|
53
|
+
web.route("server/style2.css")
|
|
54
|
+
web.route("button:Accueil", "/") # bouton vers page principale
|
|
55
|
+
|
|
56
|
+
# Lancer le serveur
|
|
57
|
+
web.run(port=5000, host="0.0.0.0")
|
|
58
|
+
|
|
@@ -4,14 +4,14 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "webenginepy"
|
|
7
|
-
version = "1.2.
|
|
7
|
+
version = "1.2.3"
|
|
8
8
|
description = "Mini moteur web Python pour créer des sites web ultra simples sans framework"
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.7"
|
|
11
11
|
license = { text = "MIT" }
|
|
12
12
|
|
|
13
13
|
authors = [
|
|
14
|
-
{ name = "
|
|
14
|
+
{ name = "GabiMinecraft02", email = "gabrielmeresse09@gmail.com" }
|
|
15
15
|
]
|
|
16
16
|
|
|
17
17
|
keywords = [
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: webenginepy
|
|
3
|
+
Version: 1.2.3
|
|
4
|
+
Summary: Mini moteur web Python pour créer des sites web ultra simples sans framework
|
|
5
|
+
Author-email: GabiMinecraft02 <gabrielmeresse09@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://pypi.org/project/webenginepy/
|
|
8
|
+
Project-URL: Source, https://pypi.org/project/webenginepy/
|
|
9
|
+
Keywords: web,engine,http,site,minimal
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.7
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: License
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# WebEnginePy
|
|
19
|
+
|
|
20
|
+
**WebEnginePy** est un module Python ultra simple conçu pour :
|
|
21
|
+
|
|
22
|
+
- Les débutants
|
|
23
|
+
- Les petits sites web
|
|
24
|
+
- Créer un service HTTP sans framework complexe
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## installation
|
|
29
|
+
pip install webenginepy
|
|
30
|
+
|
|
31
|
+
### minimun
|
|
32
|
+
python <python 3.7
|
|
33
|
+
recommendé <python 3.8
|
|
34
|
+
|
|
35
|
+
## Fonctionnalités principales
|
|
36
|
+
|
|
37
|
+
- **`web.app`** : Déclare une page HTML (application)
|
|
38
|
+
- **`web.route`** : Définit des routes pour boutons, fichiers statiques, etc.
|
|
39
|
+
- **`web.tool`** : Ajoute des outils ou scripts Python qui modifient le HTML
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## structure
|
|
44
|
+
engine.py (fichier principal)
|
|
45
|
+
index.html (page principale)
|
|
46
|
+
pages/ (pages secondaires)
|
|
47
|
+
server/ (fichiers statiques)
|
|
48
|
+
tools/ (outils)
|
|
49
|
+
|
|
50
|
+
## notes
|
|
51
|
+
Les fichiers statiques doivent être accessibles via web.route("server/nom_du_fichier")
|
|
52
|
+
|
|
53
|
+
Les outils Python doivent définir une fonction apply(html) qui reçoit le HTML et retourne le HTML modifié
|
|
54
|
+
|
|
55
|
+
Le serveur supporte plusieurs requêtes simultanées grâce au multithreading et au cache pour accélérer le chargement
|
|
56
|
+
|
|
57
|
+
## Exemple d’utilisation
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
import webenginepy as web
|
|
61
|
+
|
|
62
|
+
# Page principale
|
|
63
|
+
with web.app('/', "index.html"):
|
|
64
|
+
web.route("server/style.css") # CSS statique
|
|
65
|
+
web.route("button:Dashboard", "/dashboard") # bouton vers dashboard
|
|
66
|
+
web.tool("hello") # outil Python pour injecter du contenu
|
|
67
|
+
|
|
68
|
+
# Page secondaire
|
|
69
|
+
with web.app('/dashboard', "pages/dashboard.html"):
|
|
70
|
+
web.route("server/style2.css")
|
|
71
|
+
web.route("button:Accueil", "/") # bouton vers page principale
|
|
72
|
+
|
|
73
|
+
# Lancer le serveur
|
|
74
|
+
web.run(port=5000, host="0.0.0.0")
|
|
75
|
+
|
webenginepy-1.2.2/PKG-INFO
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: webenginepy
|
|
3
|
-
Version: 1.2.2
|
|
4
|
-
Summary: Mini moteur web Python pour créer des sites web ultra simples sans framework
|
|
5
|
-
Author-email: Gabri <gabri@example.com>
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://pypi.org/project/webenginepy/
|
|
8
|
-
Project-URL: Source, https://pypi.org/project/webenginepy/
|
|
9
|
-
Keywords: web,engine,http,site,minimal
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
13
|
-
Requires-Python: >=3.8
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
License-File: License
|
|
16
|
-
Dynamic: license-file
|
|
17
|
-
|
|
18
|
-
# WebEnginePy
|
|
19
|
-
|
|
20
|
-
WebEnginePy est un mini moteur web en Python permettant de créer des sites web très simples sans framework externe.
|
|
21
|
-
|
|
22
|
-
Le module fournit :
|
|
23
|
-
- un serveur HTTP intégré
|
|
24
|
-
- un système de routes HTML
|
|
25
|
-
- le service de fichiers statiques
|
|
26
|
-
- un système d’outils (plugins) appliqués aux pages
|
|
27
|
-
|
|
28
|
-
Aucune dépendance externe n’est requise.
|
|
29
|
-
|
|
30
|
-
## Installation
|
|
31
|
-
|
|
32
|
-
pip install webenginepy
|
|
33
|
-
|
|
34
|
-
## Principe
|
|
35
|
-
Chaque URL est associée à un fichier HTML
|
|
36
|
-
|
|
37
|
-
Les fichiers statiques sont servis depuis le dossier server/
|
|
38
|
-
|
|
39
|
-
Les outils sont des scripts Python appliqués au HTML avant envoi
|
|
40
|
-
|
|
41
|
-
## Structure minimale d’un projet
|
|
42
|
-
|
|
43
|
-
project/
|
|
44
|
-
├── main.py
|
|
45
|
-
├── index.html
|
|
46
|
-
├── pages/
|
|
47
|
-
│ └── page2.html
|
|
48
|
-
├── server/
|
|
49
|
-
│ └── style.css
|
|
50
|
-
└── tools/
|
|
51
|
-
└── exemple.py
|
|
52
|
-
|
|
53
|
-
## Exemple de site
|
|
54
|
-
|
|
55
|
-
### Exemple : moteur (engine.py)
|
|
56
|
-
|
|
57
|
-
import webenginepy as web
|
|
58
|
-
|
|
59
|
-
with web.app("/", "index.html"):
|
|
60
|
-
web.app("/page2", "pages/page2.html")
|
|
61
|
-
web.app("server/style.css)
|
|
62
|
-
|
|
63
|
-
with web.app("page2", "page2.html")
|
|
64
|
-
web.app("server/style.css")
|
|
65
|
-
|
|
66
|
-
web.run(host=0.0.0.0 port=5000)
|
|
67
|
-
|
|
68
|
-
### index.html
|
|
69
|
-
|
|
70
|
-
<!DOCTYPE html>
|
|
71
|
-
<html>
|
|
72
|
-
<head>
|
|
73
|
-
<link rel="stylesheet" href="/server/style.css">
|
|
74
|
-
</head>
|
|
75
|
-
<body>
|
|
76
|
-
<h1>Accueil</h1>
|
|
77
|
-
<a href="/page2">Aller à la page 2</a>
|
|
78
|
-
</body>
|
|
79
|
-
</html>
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### server/style.css
|
|
83
|
-
|
|
84
|
-
body {
|
|
85
|
-
font-family: Arial;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
### tools/exemple.py
|
|
89
|
-
|
|
90
|
-
def apply(html: str) -> str:
|
|
91
|
-
return html.replace("</body>", "<!-- outil appliqué --></body>")
|
|
92
|
-
|
|
93
|
-
# POUR PLUS D'INFOS
|
|
94
|
-
Aller sur
|
|
95
|
-
|
webenginepy-1.2.2/README.md
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# WebEnginePy
|
|
2
|
-
|
|
3
|
-
WebEnginePy est un mini moteur web en Python permettant de créer des sites web très simples sans framework externe.
|
|
4
|
-
|
|
5
|
-
Le module fournit :
|
|
6
|
-
- un serveur HTTP intégré
|
|
7
|
-
- un système de routes HTML
|
|
8
|
-
- le service de fichiers statiques
|
|
9
|
-
- un système d’outils (plugins) appliqués aux pages
|
|
10
|
-
|
|
11
|
-
Aucune dépendance externe n’est requise.
|
|
12
|
-
|
|
13
|
-
## Installation
|
|
14
|
-
|
|
15
|
-
pip install webenginepy
|
|
16
|
-
|
|
17
|
-
## Principe
|
|
18
|
-
Chaque URL est associée à un fichier HTML
|
|
19
|
-
|
|
20
|
-
Les fichiers statiques sont servis depuis le dossier server/
|
|
21
|
-
|
|
22
|
-
Les outils sont des scripts Python appliqués au HTML avant envoi
|
|
23
|
-
|
|
24
|
-
## Structure minimale d’un projet
|
|
25
|
-
|
|
26
|
-
project/
|
|
27
|
-
├── main.py
|
|
28
|
-
├── index.html
|
|
29
|
-
├── pages/
|
|
30
|
-
│ └── page2.html
|
|
31
|
-
├── server/
|
|
32
|
-
│ └── style.css
|
|
33
|
-
└── tools/
|
|
34
|
-
└── exemple.py
|
|
35
|
-
|
|
36
|
-
## Exemple de site
|
|
37
|
-
|
|
38
|
-
### Exemple : moteur (engine.py)
|
|
39
|
-
|
|
40
|
-
import webenginepy as web
|
|
41
|
-
|
|
42
|
-
with web.app("/", "index.html"):
|
|
43
|
-
web.app("/page2", "pages/page2.html")
|
|
44
|
-
web.app("server/style.css)
|
|
45
|
-
|
|
46
|
-
with web.app("page2", "page2.html")
|
|
47
|
-
web.app("server/style.css")
|
|
48
|
-
|
|
49
|
-
web.run(host=0.0.0.0 port=5000)
|
|
50
|
-
|
|
51
|
-
### index.html
|
|
52
|
-
|
|
53
|
-
<!DOCTYPE html>
|
|
54
|
-
<html>
|
|
55
|
-
<head>
|
|
56
|
-
<link rel="stylesheet" href="/server/style.css">
|
|
57
|
-
</head>
|
|
58
|
-
<body>
|
|
59
|
-
<h1>Accueil</h1>
|
|
60
|
-
<a href="/page2">Aller à la page 2</a>
|
|
61
|
-
</body>
|
|
62
|
-
</html>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
### server/style.css
|
|
66
|
-
|
|
67
|
-
body {
|
|
68
|
-
font-family: Arial;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
### tools/exemple.py
|
|
72
|
-
|
|
73
|
-
def apply(html: str) -> str:
|
|
74
|
-
return html.replace("</body>", "<!-- outil appliqué --></body>")
|
|
75
|
-
|
|
76
|
-
# POUR PLUS D'INFOS
|
|
77
|
-
Aller sur
|
|
78
|
-
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: webenginepy
|
|
3
|
-
Version: 1.2.2
|
|
4
|
-
Summary: Mini moteur web Python pour créer des sites web ultra simples sans framework
|
|
5
|
-
Author-email: Gabri <gabri@example.com>
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://pypi.org/project/webenginepy/
|
|
8
|
-
Project-URL: Source, https://pypi.org/project/webenginepy/
|
|
9
|
-
Keywords: web,engine,http,site,minimal
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
13
|
-
Requires-Python: >=3.8
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
License-File: License
|
|
16
|
-
Dynamic: license-file
|
|
17
|
-
|
|
18
|
-
# WebEnginePy
|
|
19
|
-
|
|
20
|
-
WebEnginePy est un mini moteur web en Python permettant de créer des sites web très simples sans framework externe.
|
|
21
|
-
|
|
22
|
-
Le module fournit :
|
|
23
|
-
- un serveur HTTP intégré
|
|
24
|
-
- un système de routes HTML
|
|
25
|
-
- le service de fichiers statiques
|
|
26
|
-
- un système d’outils (plugins) appliqués aux pages
|
|
27
|
-
|
|
28
|
-
Aucune dépendance externe n’est requise.
|
|
29
|
-
|
|
30
|
-
## Installation
|
|
31
|
-
|
|
32
|
-
pip install webenginepy
|
|
33
|
-
|
|
34
|
-
## Principe
|
|
35
|
-
Chaque URL est associée à un fichier HTML
|
|
36
|
-
|
|
37
|
-
Les fichiers statiques sont servis depuis le dossier server/
|
|
38
|
-
|
|
39
|
-
Les outils sont des scripts Python appliqués au HTML avant envoi
|
|
40
|
-
|
|
41
|
-
## Structure minimale d’un projet
|
|
42
|
-
|
|
43
|
-
project/
|
|
44
|
-
├── main.py
|
|
45
|
-
├── index.html
|
|
46
|
-
├── pages/
|
|
47
|
-
│ └── page2.html
|
|
48
|
-
├── server/
|
|
49
|
-
│ └── style.css
|
|
50
|
-
└── tools/
|
|
51
|
-
└── exemple.py
|
|
52
|
-
|
|
53
|
-
## Exemple de site
|
|
54
|
-
|
|
55
|
-
### Exemple : moteur (engine.py)
|
|
56
|
-
|
|
57
|
-
import webenginepy as web
|
|
58
|
-
|
|
59
|
-
with web.app("/", "index.html"):
|
|
60
|
-
web.app("/page2", "pages/page2.html")
|
|
61
|
-
web.app("server/style.css)
|
|
62
|
-
|
|
63
|
-
with web.app("page2", "page2.html")
|
|
64
|
-
web.app("server/style.css")
|
|
65
|
-
|
|
66
|
-
web.run(host=0.0.0.0 port=5000)
|
|
67
|
-
|
|
68
|
-
### index.html
|
|
69
|
-
|
|
70
|
-
<!DOCTYPE html>
|
|
71
|
-
<html>
|
|
72
|
-
<head>
|
|
73
|
-
<link rel="stylesheet" href="/server/style.css">
|
|
74
|
-
</head>
|
|
75
|
-
<body>
|
|
76
|
-
<h1>Accueil</h1>
|
|
77
|
-
<a href="/page2">Aller à la page 2</a>
|
|
78
|
-
</body>
|
|
79
|
-
</html>
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### server/style.css
|
|
83
|
-
|
|
84
|
-
body {
|
|
85
|
-
font-family: Arial;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
### tools/exemple.py
|
|
89
|
-
|
|
90
|
-
def apply(html: str) -> str:
|
|
91
|
-
return html.replace("</body>", "<!-- outil appliqué --></body>")
|
|
92
|
-
|
|
93
|
-
# POUR PLUS D'INFOS
|
|
94
|
-
Aller sur
|
|
95
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|