Rework template system, merge templates
The embedded portion doesn't work yet.
This commit is contained in:
parent
eb6e54a0f7
commit
0265e9d3ec
163 changed files with 11637 additions and 9183 deletions
13
sync/template.go
Normal file
13
sync/template.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package sync
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
// Respond with an error that is visible to the user
|
||||
func respondError(w http.ResponseWriter, m string, e error, s int) {
|
||||
log.Warn().Int("status", s).Err(e).Str("user message", m).Msg("Responding with an error from sync pages")
|
||||
http.Error(w, m, s)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue