projects
/
VSCPweb
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6076121
)
This is just a comment
author
josuer08
<josuer08@gmail.com>
Mon, 24 Jul 2023 04:40:49 +0000
(
00:40
-0400)
committer
josuer08
<josuer08@gmail.com>
Mon, 24 Jul 2023 04:40:49 +0000
(
00:40
-0400)
vscpweb.go
patch
|
blob
|
history
diff --git
a/vscpweb.go
b/vscpweb.go
index 5a3f2dde5eafdc944169542d5406bee8e490c6f0..f27e55aa17b7fa480f5258e3b509657ca38b6ead 100644
(file)
--- a/
vscpweb.go
+++ b/
vscpweb.go
@@
-154,6
+154,7
@@
func indexHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
passarg := "some passing argument"
indexTemplate := template.Must(template.ParseFiles("templates/views/index.html"))
+ //check for go partial templates so you can extract blocks you want to use
indexTemplate.Execute(w, passarg)
}