Refactor template loading around the handler
This commit is contained in:
parent
d40dc21627
commit
5517da6a69
9 changed files with 40 additions and 42 deletions
|
@ -180,7 +180,7 @@ func readHandler(h handler) {
|
|||
data.Next, data.Prev = getNextPrev(e, file, id, "/read/")
|
||||
data.Chapters = getChapters(e, file, id, "/read/")
|
||||
data.Content = genLink(id, "/content/", file)
|
||||
h.template.load(h, "read", data)
|
||||
h.load("read", data)
|
||||
}
|
||||
|
||||
func openReadEpub(id string, store storage.Store) *epubgo.Epub {
|
||||
|
|
Reference in a new issue