added children db, simple render

This commit is contained in:
sm
2013-03-04 21:56:39 -08:00
parent 9a917e98a5
commit 200f109e19
3 changed files with 28 additions and 2 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ func homeHandler(w http.ResponseWriter, req *http.Request) {
if loggedIn == nil {
http.Redirect(w, req, "/login", http.StatusSeeOther)
}
T("index.html").Execute(w, map[string]interface{}{})
children := loadChildren(*db_file)
T("index.html").Execute(w, map[string]interface{}{
"children": children,})
}
func loginHandler(w http.ResponseWriter, req *http.Request) {