mirror of
https://gitlab.durp.info/durfy/apps/durpweb.git
synced 2026-05-07 07:50:31 -05:00
Update files
This commit is contained in:
parent
67b4818274
commit
24d07aeb37
2 changed files with 4 additions and 2 deletions
|
|
@ -16,10 +16,10 @@ func GetIndex(w http.ResponseWriter, r *http.Request) {
|
||||||
Message string
|
Message string
|
||||||
MainTitle string
|
MainTitle string
|
||||||
}{
|
}{
|
||||||
Message: "Hello World!!!",
|
Message: "Hello World!!",
|
||||||
MainTitle: "SimpleWebsite!",
|
MainTitle: "SimpleWebsite!",
|
||||||
}
|
}
|
||||||
|
|
||||||
tmpl.ExecuteTemplate(w, "index.html", data)
|
tmpl.ExecuteTemplate(w, "index", data)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{ define "index" }}
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
@ -20,3 +21,4 @@
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
{{ end }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue