Commits

Luke Plant  committed 53dc9f6

Added some more docs for routing

  • Participants
  • Parent commits f335e65

Comments (0)

Files changed (1)

File src/Ella/Framework.hs

 -- >  viewWithIntStringInt :: Int -> String -> Int -> Request -> IO (Maybe Response)
 -- >  decs :: [View -> View]
 --
+-- These would correspond to URLs like the following:
+--
+-- > /
+-- > /posts/
+-- > /123/
+-- > /abc7/
+-- > /123/test/
+-- > /test/123/
+-- > /123/abc7/
+-- > /123/abc7/456/
+--
 -- The right hand argument of '//->' is a 'view like' function, of type
 -- 'View' OR @a -> 'View'@ OR @a -> b -> 'View'@ etc,
 --