projects
/
VSCPweb
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
8384444
)
Merge branch 'master' of https://github.com/josuer08/VSCPweb
author
Josué Rodríguez
<jrpc@google.com>
Tue, 1 Aug 2023 21:59:07 +0000
(21:59 +0000)
committer
Josué Rodríguez
<jrpc@google.com>
Tue, 1 Aug 2023 21:59:07 +0000
(21:59 +0000)
vscpweb.go
patch
|
blob
|
history
diff --git
a/vscpweb.go
b/vscpweb.go
index d4c3ad30d727ab80c57200e2450b0a83513ff242..a304d5ad90ac0062d291b4a52a0f22d93d791432 100644
(file)
--- a/
vscpweb.go
+++ b/
vscpweb.go
@@
-165,6
+165,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)
}