GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
working with separate rdoc file for mapping
automatthew (author)
Thu Aug 21 08:25:01 -0700 2008
commit  48f8e644827be8f5ad7049477c25332432e82b1e
tree    960e627c7d9904c4c1a134addb02348f15ff136f
parent  0e7cb26db16d4c7349343ee462c9c02dc632fdb9
...
1
2
3
 
4
5
 
6
7
8
...
13
14
15
16
 
17
18
19
...
32
33
34
35
 
36
37
38
39
 
40
 
 
 
41
 
 
 
 
 
 
 
42
43
44
...
1
2
 
3
4
 
5
6
7
8
...
13
14
15
 
16
17
18
19
...
32
33
34
 
35
36
37
38
 
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
0
@@ -1,8 +1,8 @@
0
 module Waves
0
 
0
- # = Mappings
0
+ # = Mappings are the heart of Waves,
0
   #
0
- # Mappings are the heart of Waves, the system whereby the madding crowd of slovenly requests are
0
+ # the system whereby the madding crowd of slovenly requests are
0
   # sorted, segregated, cleaned and dressed, put on their best behavior, and shunted through as complex
0
   # a series of filters as you, the web developer, could wish for.
0
   #
0
@@ -13,7 +13,7 @@ module Waves
0
   #
0
   # There are three basic types of mapping: responses, filters, and exception handlers
0
   #
0
- # == Responses
0
+ # == Response mappings
0
   #
0
   # A response mapping provides the primary action in answer to a HTTP request. That is, the return value of an action
0
   # is written to the HTTP response body. The default dispatcher runs only the first response mapping it finds
0
@@ -32,13 +32,23 @@ module Waves
0
   #
0
   # == Exception handlers
0
   #
0
- # Handler mappings take an exception class as a constraint, in addition to any of the other possible constraints.
0
+ # A handler mapping takes an exception class as a constraint, in addition to any of the other possible constraints.
0
   # The default dispatcher uses an exception handler, if it can find one, to process exceptions thrown by
0
   # the before, response, and after actions.
0
   #
0
- # = Constraints
0
+ # = Anatomy of a Mapping
0
   #
0
+ # response :list, :get => [ :resources ] do
0
+ # action( :all ) and render( :list )
0
+ # end
0
   #
0
+ # = Request Matching
0
+ #
0
+ # == Path Patterns
0
+ #
0
+ # /uno/dos/tres/catorce
0
+ #
0
+ # :path => [ 'uno', 'dos', 'tres', 'catorce' ]
0
   
0
   module Mapping
0
     

Comments

    No one has commented yet.