agecem-org/templates/html/documentation.gohtml
Victor Lacasse-Beaudoin 2eee1f2fd2 Séparer templates de public/ -> templates/
Séparer embedFS en publicFS et templatesFS
2023-07-04 21:57:13 -04:00

26 lines
624 B
Text

{{ define "documentation-html" }}
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>AGECEM | Documentation</title>
{{ template "general-html" }}
</head>
<body>
{{ template "header-html" }}
<h1>Documentation</h1>
<p>
{{ range . }}
{{ $bucket_name := .Name }}
<h2>{{ $bucket_name }}</h2>
<ul>
{{ range .Documents }}
<li> <a href="/public/documentation/{{ $bucket_name }}/{{ . }}">{{ . }}</a></li>
{{ end}}
</ul>
{{ end }}
</p>
</body>
</html>
{{ end }}