Migrer exposition statique à StaticWithConfig
Ajouter groupStatic pour StaticWithConfig Retirer handlers manuels redondants par StaticWithConfig
This commit is contained in:
parent
2eee1f2fd2
commit
6bc791506a
5 changed files with 26 additions and 22 deletions
|
@ -1,3 +1,3 @@
|
|||
{{ define "general-html" }}
|
||||
<link rel="stylesheet" href="/static/general.css">
|
||||
<link rel="stylesheet" href="/public/css/general.css">
|
||||
{{ end }}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>AGECEM</title>
|
||||
{{ template "general-html" }}
|
||||
<link rel="stylesheet" href="static/index.css">
|
||||
<link rel="stylesheet" href="/public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
Package templates contient les fichiers gohtml à 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.
|
||||
|
||||
Une copie du contenu peut être obtenue par un appel de GetTemplatesFS().
|
||||
*/
|
||||
package templates
|
||||
|
||||
import "embed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue