1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Loads current text statically. Faster loading

This commit is contained in:
Zack Scholl
2016-02-08 08:37:22 -05:00
parent d8052bdb7a
commit 182389dbb1
4 changed files with 36 additions and 4 deletions

View File

@ -30,8 +30,9 @@ func editNote(c *gin.Context) {
c.Redirect(302, "/"+title+"/view")
} else {
c.HTML(http.StatusOK, "index.tmpl", gin.H{
"Title": title,
"ExternalIP": RuntimeArgs.ExternalIP,
"Title": title,
"ExternalIP": RuntimeArgs.ExternalIP,
"CurrentText": getCurrentText(title),
})
}
}