Permalink
Browse files

partial dispatch implementation

  • Loading branch information...
1 parent 097ca27 commit 7dafc65a272ef9f850cf1910bf82d9f5c0c74183 @felipero committed Apr 18, 2009
Showing with 17 additions and 9 deletions.
  1. +8 −9 src/ioke/ikido.ik
  2. +9 −0 test/_controllers/simple_controller.ik
View
17 src/ioke/ikido.ik
@@ -1,11 +1,10 @@
- "Ikido is loading..." println
+"Ikido is loading..." println
- Ikido = Origin mimic
-
- Ikido action = method(regexp, action,
- IKanServe actionForPath(regexp, action)
- )
+Ikido = Origin mimic
- FileSystem["classes/app/**/*controller.ik"] each(f,
- use(f)
- )
+Ikido dispatch = method(path,
+ {status: 404, headers:{contentType:"text/html"}, content:"404: Resource not found."}
+; FileSystem["classes/app/**/*controller.ik"] each(f,
+; use(f)
+; )
+)
View
9 test/_controllers/simple_controller.ik
@@ -0,0 +1,9 @@
+Ikido SimpleController = Controller mimic do (
+ foo = method(
+ render("foo")
+ )
+
+ bar = method(
+ render("bar")
+ )
+)

0 comments on commit 7dafc65

Please sign in to comment.