From: Josué Rodríguez Date: Tue, 1 Aug 2023 21:59:07 +0000 (+0000) Subject: Merge branch 'master' of https://github.com/josuer08/VSCPweb X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=05f37a6b612c246b3bcc02a221ace6346ed766be;hp=8384444eeaa3f59d519cd3f8dd1a80cf74ad9a5f;p=VSCPweb%2F.git Merge branch 'master' of https://github.com/josuer08/VSCPweb --- diff --git a/vscpweb.go b/vscpweb.go index d4c3ad3..a304d5a 100644 --- 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) }