Skip to content

Commit

Permalink
Update readme #16
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Jan 24, 2013
1 parent e808060 commit 4d26574
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Description

This is simple routing for ExpressJS framework. It allows you to write routes in Ruby on rails 2 style.
This is simple routing for ExpressJS framework. It allows you to write
resourceful routes.

## Using with Express

Expand Down Expand Up @@ -53,10 +54,18 @@ In that case your handler should be:
- url helpers
- namespaces
- custom helper names / paths for resources
- named parameters in url helpers

## Docs

http://railwayjs.com/routing.html
http://compoundjs.com/docs/#routing

### Named route params

Example:

map.get('/test/:param1/:param2', 'controller#action');
map.pathTo.test({param1: 'foo', param2: 'bar'}); // '/test/foo/bar'

### Singleton resources

Expand Down

0 comments on commit 4d26574

Please sign in to comment.