From 9ddcc9b0f5bafbf8e2f82a7dcdedb8ac1c63cdc0 Mon Sep 17 00:00:00 2001 From: Francesco Minnocci Date: Sun, 19 Dec 2021 00:33:24 +0100 Subject: [PATCH] Add views/link.html --- main.go | 8 ++++++++ views/link.html | 27 +++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 views/link.html diff --git a/main.go b/main.go index fc6f313..e45e8fb 100644 --- a/main.go +++ b/main.go @@ -35,6 +35,14 @@ func main() { } }) + r.Get("/link", func(w http.ResponseWriter, r *http.Request) { + err := renderer.Render(w, "link.html", util.H{}) + if err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } + }) + r.Get("/utenti", func(w http.ResponseWriter, r *http.Request) { err := renderer.Render(w, "utenti.html", util.H{}) if err != nil { diff --git a/views/link.html b/views/link.html new file mode 100644 index 0000000..35365f7 --- /dev/null +++ b/views/link.html @@ -0,0 +1,27 @@ +{{template "base" .}} + +{{define "title"}}PHC • Link Utili • phc.dm.xxxxx.xx{{end}} + +{{define "body"}} +
+

+ + Link Utili +

+ +

+ Questo รจ un elenco di indirizzi che riteniamo utili: +

+ + + Link dell'Aula Studenti + Dipartimento di Matematica + Non trovi un simbolo in Latex? + Wikipedia + Latex + +
+ + +{{end}}