22 lines
393 B
Go
22 lines
393 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type Update struct {
|
|
UpdatedAgo string
|
|
Author string
|
|
}
|
|
|
|
func (h *Handler) showIndexView(w http.ResponseWriter, r *http.Request) {
|
|
// user, _ := h.sess.Get(r)
|
|
|
|
//h.renderLayout(w, "index", map[string]interface{}{
|
|
// "Pages": pages,
|
|
// "Files": files,
|
|
// "News": news,
|
|
//}, user)
|
|
|
|
h.renderLayout(w, "index", map[string]interface{}{}, "")
|
|
}
|