blob: c0da7f088753e067da3a91abc44ad653b4789d4f (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 | package handlers
import (
	"html/template"
	"net/http"
)
func (h *Handlers) ServeShowForm(w http.ResponseWriter, r *http.Request) {
	tmpl, err := template.ParseGlob("components/*.html")
	if err != nil {
		panic(err)
	}
	tmpl.ExecuteTemplate(w, "actionform", nil)
}
func (h *Handlers) ServeHideForm(w http.ResponseWriter, r *http.Request) {
	tmpl, err := template.ParseGlob("components/*.html")
	if err != nil {
		panic(err)
	}
	tmpl.ExecuteTemplate(w, "showformbtn", nil)
}
 |