Refactor template loading around the handler
This commit is contained in:
parent
d40dc21627
commit
5517da6a69
9 changed files with 40 additions and 42 deletions
|
@ -105,7 +105,7 @@ func uploadHandler(h handler) {
|
|||
data.S = GetStatus(h)
|
||||
data.S.Title = "Upload -- " + data.S.Title
|
||||
data.S.Upload = true
|
||||
h.template.load(h, "upload", data)
|
||||
h.load("upload", data)
|
||||
}
|
||||
|
||||
type uploadData struct {
|
||||
|
|
Reference in a new issue