diff --git a/cmd/server.go b/cmd/server.go index a5a9fbf..5f61cd0 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -146,7 +146,7 @@ func RunServer() { e := echo.New() t := &Template{ - templates: template.Must(template.ParseFS(templatesFS, "html/*.gohtml")), + templates: template.Must(template.ParseFS(templatesFS, "html/*.html")), } e.Renderer = t diff --git a/templates/html/admin-upload.gohtml b/templates/html/admin-upload.html similarity index 100% rename from templates/html/admin-upload.gohtml rename to templates/html/admin-upload.html diff --git a/templates/html/admin.gohtml b/templates/html/admin.html similarity index 100% rename from templates/html/admin.gohtml rename to templates/html/admin.html diff --git a/templates/html/documentation.gohtml b/templates/html/documentation.html similarity index 100% rename from templates/html/documentation.gohtml rename to templates/html/documentation.html diff --git a/templates/html/formulaires.gohtml b/templates/html/formulaires.html similarity index 100% rename from templates/html/formulaires.gohtml rename to templates/html/formulaires.html diff --git a/templates/html/general.gohtml b/templates/html/general.html similarity index 100% rename from templates/html/general.gohtml rename to templates/html/general.html diff --git a/templates/html/header.gohtml b/templates/html/header.html similarity index 100% rename from templates/html/header.gohtml rename to templates/html/header.html diff --git a/templates/html/index.gohtml b/templates/html/index.html similarity index 100% rename from templates/html/index.gohtml rename to templates/html/index.html diff --git a/templates/html/old/a-propos.gohtml b/templates/html/old/a-propos.html similarity index 100% rename from templates/html/old/a-propos.gohtml rename to templates/html/old/a-propos.html diff --git a/templates/html/old/actualite.gohtml b/templates/html/old/actualite.html similarity index 100% rename from templates/html/old/actualite.gohtml rename to templates/html/old/actualite.html diff --git a/templates/html/snackbar.gohtml b/templates/html/snackbar.html similarity index 100% rename from templates/html/snackbar.gohtml rename to templates/html/snackbar.html diff --git a/templates/html/vie-etudiante.gohtml b/templates/html/vie-etudiante.html similarity index 100% rename from templates/html/vie-etudiante.gohtml rename to templates/html/vie-etudiante.html diff --git a/templates/templates.go b/templates/templates.go index 89dc221..79f292c 100644 --- a/templates/templates.go +++ b/templates/templates.go @@ -1,5 +1,5 @@ /* -Package templates contient les fichiers gohtml à templater par l'application. +Package templates contient les fichiers html à templater par l'application. Le contenu sera embedded dans le fichier binaire, dans le but de bundle les dépendances avec l'application, simplifiant son déploiement. @@ -10,7 +10,7 @@ package templates import "embed" -//go:embed html/*.gohtml +//go:embed html/*.html var templatesFS embed.FS func GetTemplatesFS() embed.FS {