Template
1
0
Fork 0
goth.stack/pages/ssedemo.go
2024-01-24 11:22:33 -07:00

16 lines
324 B
Go

package pages
import (
"net/http"
"github.com/uptrace/bunrouter"
"goth.stack/lib"
)
func SSEDemo(w http.ResponseWriter, req bunrouter.Request) error {
// Specify the partials used by this page
partials := []string{"header", "navitems"}
// Render the template
return lib.RenderTemplate(w, "base", partials, nil)
}