diff --git a/public/html/a-propos.gohtml b/public/html/a-propos.gohtml
new file mode 100644
index 0000000..d4cd169
--- /dev/null
+++ b/public/html/a-propos.gohtml
@@ -0,0 +1,14 @@
+{{ define "a-propos-html" }}
+
+
+
+
+ AGECEM | À propos
+ {{ template "general-html" }}
+
+
+ {{ template "header-html" }}
+ À propos
+
+
+{{ end }}
diff --git a/public/html/actualite.gohtml b/public/html/actualite.gohtml
new file mode 100644
index 0000000..de6bbb1
--- /dev/null
+++ b/public/html/actualite.gohtml
@@ -0,0 +1,14 @@
+{{ define "actualite-html" }}
+
+
+
+
+ AGECEM | Actualité
+ {{ template "general-html" }}
+
+
+ {{ template "header-html" }}
+ Actualité
+
+
+{{ end }}
diff --git a/public/html/documentation.gohtml b/public/html/documentation.gohtml
new file mode 100644
index 0000000..813d77e
--- /dev/null
+++ b/public/html/documentation.gohtml
@@ -0,0 +1,14 @@
+{{ define "documentation-html" }}
+
+
+
+
+ AGECEM | Documentation
+ {{ template "general-html" }}
+
+
+ {{ template "header-html" }}
+ Documentation
+
+
+{{ end }}
diff --git a/public/html/formulaires.gohtml b/public/html/formulaires.gohtml
new file mode 100644
index 0000000..eb8dc7e
--- /dev/null
+++ b/public/html/formulaires.gohtml
@@ -0,0 +1,14 @@
+{{ define "formulaires-html" }}
+
+
+
+
+ AGECEM | Formulaires
+ {{ template "general-html" }}
+
+
+ {{ template "header-html" }}
+ Formulaires
+
+
+{{ end }}
diff --git a/public/html/vie-etudiante.gohtml b/public/html/vie-etudiante.gohtml
new file mode 100644
index 0000000..e2a78ba
--- /dev/null
+++ b/public/html/vie-etudiante.gohtml
@@ -0,0 +1,14 @@
+{{ define "vie-etudiante-html" }}
+
+
+
+
+ AGECEM | Vie étudiante
+ {{ template "general-html" }}
+
+
+ {{ template "header-html" }}
+ Vie étudiante
+
+
+{{ end }}
diff --git a/server.go b/server.go
index 3441748..76d5e61 100644
--- a/server.go
+++ b/server.go
@@ -92,11 +92,11 @@ func handleIndex(c echo.Context) error {
}
func handleAPropos(c echo.Context) error {
- return c.String(http.StatusOK, "À Propos")
+ return c.Render(http.StatusOK, "a-propos-html", nil)
}
func handleActualite(c echo.Context) error {
- return c.String(http.StatusOK, "Actualité")
+ return c.Render(http.StatusOK, "actualite-html", nil)
}
func handleActualiteArticle(c echo.Context) error {
@@ -104,17 +104,17 @@ func handleActualiteArticle(c echo.Context) error {
return c.String(http.StatusOK, fmt.Sprintf("Article: %s", article))
}
func handleVieEtudiante(c echo.Context) error {
- return c.String(http.StatusOK, "Vie Étudiante")
+ return c.Render(http.StatusOK, "vie-etudiante-html", nil)
}
func handleVieEtudianteOrganisme(c echo.Context) error {
organisme := c.Param("organisme")
return c.String(http.StatusOK, fmt.Sprintf("Organisme: %s", organisme))
}
func handleDocumentation(c echo.Context) error {
- return c.String(http.StatusOK, "Documentation")
+ return c.Render(http.StatusOK, "documentation-html", nil)
}
func handleFormulaires(c echo.Context) error {
- return c.String(http.StatusOK, "Formulaires")
+ return c.Render(http.StatusOK, "formulaires-html", nil)
}
// CSS Handlers