1. 13 Sep, 2013 3 commits
    • astaxie's avatar
      improve template · 0476da50
      astaxie authored
      0476da50
    • astaxie's avatar
      support template · 943fe971
      astaxie authored
      943fe971
    • astaxie's avatar
      fix #153 · 9d84969b
      astaxie authored
      已经支持了任意定义变量的路由形式,具体的使用请参考:
      
      func TestManyRoute(t *testing.T) {
      
      	r, _ := http.NewRequest("GET", "/beego32-12.html", nil)
      	w := httptest.NewRecorder()
      
      	handler := NewControllerRegistor()
      	handler.Add("/beego:id([0-9]+)-:page([0-9]+).html", &TestController{})
      	handler.ServeHTTP(w, r)
      
      	id := r.URL.Query().Get(":id")
      	page := r.URL.Query().Get(":page")
      
      	if id != "32" {
      		t.Errorf("url param set to [%s]; want [%s]", id, "32")
      	}
      	if page != "12" {
      		t.Errorf("url param set to [%s]; want [%s]", page, "12")
      	}
      }
      9d84969b
  2. 12 Sep, 2013 6 commits
  3. 11 Sep, 2013 7 commits
  4. 10 Sep, 2013 7 commits
  5. 09 Sep, 2013 7 commits
  6. 06 Sep, 2013 1 commit
  7. 30 Aug, 2013 2 commits
  8. 28 Aug, 2013 4 commits
  9. 27 Aug, 2013 3 commits