Got distinct index and login pages working.

This commit is contained in:
sm
2013-02-20 21:27:09 -08:00
parent f9d2d247bc
commit 3ca4994676
3 changed files with 21 additions and 32 deletions
+17
View File
@@ -0,0 +1,17 @@
package main
import (
"log"
"net/http"
)
func homeHandler(c http.ResponseWriter, req *http.Request) {
log.Printf("%v\n", req.URL)
T("index.html").Execute(c, map[string]interface{}{})
}
func loginHandler(c http.ResponseWriter, req *http.Request) {
pwAttempt := req.FormValue("passwd")
log.Printf("%v\n", pwAttempt)
T("login.html").Execute(c, map[string]interface{}{})
}