code: func InstallHandlers(r *router.Router, base router.MiddlewareChain, templatesPath string) {
  	m := base.Extend(func(c *router.Context, next router.Handler) {
  		c.Context = context.WithValue(c.Context, startTimeContextKey(0), clock.Now(c.Context))
  		next(c)
  	}).Extend(
  		templates.WithTemplates(prepareTemplates(templatesPath)),
  		auth.Authenticate(server.UsersAPIAuthMethod{}),
  	)
  
  	r.GET("/", m, renderErr(routeToPage))
  	r.GET("/p/*path", m, renderErr(routeToPage))
  }
docs: // InstallHandlers adds HTTP handlers that render HTML pages.