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
|
||||
MainTitle string
|
||||
}{
|
||||
Message: "Hello World!!!",
|
||||
Message: "Hello World!!",
|
||||
MainTitle: "SimpleWebsite!",
|
||||
}
|
||||
|
||||
tmpl.ExecuteTemplate(w, "index.html", data)
|
||||
tmpl.ExecuteTemplate(w, "index", data)
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ define "index" }}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
|
@ -20,3 +21,4 @@
|
|||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue