add browse file; move function to utils pkg

This commit is contained in:
Henrique Dias
2015-09-15 21:40:46 +01:00
parent 7a5e184610
commit 2300aa3a63
4 changed files with 38 additions and 26 deletions

14
browse/browse.go Normal file
View File

@@ -0,0 +1,14 @@
package browse
import (
"net/http"
"github.com/hacdias/caddy-hugo/page"
)
// Execute sth
func Execute(w http.ResponseWriter, r *http.Request) (int, error) {
page := new(page.Page)
page.Title = "Browse"
return page.Render(w, r, "browse")
}